Skip to content

Conversation

@ChadKillingsworth
Copy link
Contributor

I realize that code implementation does not necessarily dictate documentation, but the Promise type returned from various methods also contains the .promise() method of the deferred object (and I think it has always been this way).

This would simply officially document that behavior.

Discussion which prompted this: https://groups.google.com/d/msg/closure-compiler-discuss/qbNLjzp3OCw/fjNhLsv4regJ

@dmethvin
Copy link
Member

dmethvin commented Jun 9, 2015

I agree, this LGTM. In general we are moving towards interoperation with standard Promise and thenables, but there is no reason I can think of to avoid documenting .promise() for completeness.

@arthurvr
Copy link
Member

arthurvr commented Jun 9, 2015

Thanks! 👍 I'll land this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants