aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/timeout.js
AgeCommit message (Collapse)Author
2014-02-21docs(*): fix anchors for members in api docsPeter Bacon Darwin
2014-02-18style: remove ws and enfore no-trailing-ws jscs ruleIgor Minar
2014-02-16docs(content): fix bad linksPeter Bacon Darwin
2014-02-16docs(bike-shed-migration): convert doctype and namesPeter Bacon Darwin
2013-12-17docs(bootstrap-prettify): fix $timeout issues and update related docsPete Bacon Darwin
End 2 end tests wait for all `$timeout`s to be run before completing the test. This was problematic where we were using timeouts that restarted themselves because there would never be a point when all timeouts had completed, causing the tests to hang. To fix this $timeout had been monkey-patched but this caused other issue itself. Now that we have $interval we don't need to use $timeout handlers that re-trigger the $timeout so we can ditch the monkey-patch. This commit tidies up any examples that are using this approach and changes them to use $interval instead. Closes #5232
2013-10-18docs: correct broken linksVojta Jina
This also contains some whitespace corrections by my editor.
2013-09-28docs($timeout): add a $timeout exampleUri Goldshtein
The original example is by gxlcl. Closes #4180
2013-08-26feat(Scope): async auto-flush $evalAsync queue when outside of $digestIgor Minar
This change causes a new $digest to be scheduled in the next tick if a task was was sent to the $evalAsync queue from outside of a $digest or an $apply. While this mode of operation is not common for most of the user code, this change means that $q promises that utilze $evalAsync queue to guarantee asynchronicity of promise apis will now also resolve outside of a $digest, which turned out to be a big pain point for some developers. The implementation ensures that we don't do more work than needed and that we coalese as much work as possible into a single $digest. The use of $browser instead of setTimeout ensures that we can mock out and control the scheduling of "auto-flush", which should in theory allow all of the existing code and tests to work without negative side-effects. Closes #3539 Closes #2438
2013-08-14fix($timeout): clean deferreds immediately after callback exec/cancelAndy Gurden
Make sure $timeout callbacks are forgotten about immediately after execution or cancellation. Previously when passing invokeApply=false, the cleanup used $q and so would be pending until the next $digest was triggered. This does not make a large functional difference, but can be very visible when looking at memory consumption of an app or debugging around the $$asyncQueue - these callbacks can have a big retaining tree.
2013-05-14docs($timeout): minor cleanupSiddique Hameed
Added a comma separator in the statement Removed the word the from the statement Used whose instead of who's in the following statement Italicized false in the statement Used a comma separator in the statement
2012-11-11docs($timeout): set return type to Promise instead of *.Wes Alvaro
The cancel function accepts a Promise, but the timeout function fails to specify returning a Promise.
2012-06-12docs(*): simplify doc urlsIgor Minar
we now have two types of namespaces: - true namespace: angular.* - used for all global apis - virtual namespace: ng.*, ngMock.*, ... - used for all DI modules the virual namespaces have services under the second namespace level (e.g. ng.) and filters and directives prefixed with filter: and directive: respectively (e.g. ng.filter:orderBy, ng.directive:ngRepeat) this simplifies urls and makes them a lot shorter while still avoiding name collisions
2012-06-04fix($timeout): allow calling $timeout.cancel() with undefinedAli Mills
This is how it worked in rc9, before refactoring $defer into $timeout.
2012-05-23feat($timeout): add $timeout service that supersedes $deferIgor Minar
$timeout has a better name ($defer got often confused with something related to $q) and is actually promise based with cancelation support. With this commit the $defer service is deprecated and will be removed before 1.0. Closes #704, #532