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

Comments

Projects
None yet
2 participants
@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

This comment has been minimized.

Show comment
Hide comment
@IgorMinar

IgorMinar Jan 12, 2012

Member

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).

Member

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

This comment has been minimized.

Show comment
Hide comment
@ThomasBurleson

ThomasBurleson 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).

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