Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename $defer() function #704

Closed
ThomasBurleson opened this issue Jan 4, 2012 · 2 comments
Closed

Rename $defer() function #704

ThomasBurleson opened this issue Jan 4, 2012 · 2 comments
Milestone

Comments

@ThomasBurleson
Copy link

@ThomasBurleson ThomasBurleson commented Jan 4, 2012

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
Member

@IgorMinar IgorMinar commented Jan 12, 2012

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

@ThomasBurleson ThomasBurleson commented Jan 12, 2012

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 join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

2 participants
You can’t perform that action at this time.