Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Rename $defer() function #704

Closed
ThomasBurleson opened this issue Jan 4, 2012 · 2 comments · Fixed by #981
Closed

Rename $defer() function #704

ThomasBurleson opened this issue Jan 4, 2012 · 2 comments · Fixed by #981
Milestone

Comments

@ThomasBurleson
Copy link

Promise/A, jQuery.Deferred and other libraries provide futures functionality using deferred, defer, and promise.

In contrast, the AngularJS.$defer() is actually a $wait() or $delay() feature. Thus I request that the $defer() be renamed to $wait() or $pause().

@IgorMinar
Copy link
Contributor

I see how this can be confusing. Especially with the recent addition of promises/futures which landed in master. I like the idea of renaming it to $delay unless a better name shows up. (wait makes it look like a synchronous api, so I don't like that name).

@ThomasBurleson
Copy link
Author

An alternative name could also be $callLater(); but in Flash call later delays the call only for 1 frame (typically ~24 ms).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants