angular/angular.js — pull request #7977 by Hartimer (2014-06-25 00:39:50+00:00)
Title: feat($resource): Allow functions in action timeout

Support functions when configuring actions. This allows the timeout to change with time, when the function returns a number, and allows an action to be cancelled multiple times, when the function returns a new promise.

Closes #7974