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

Implement async iteration proposal (stage 3) #1824

Closed
mroch opened this issue May 21, 2016 · 6 comments
Closed

Implement async iteration proposal (stage 3) #1824

mroch opened this issue May 21, 2016 · 6 comments

Comments

@mroch
Copy link
Contributor

mroch commented May 21, 2016

https://github.com/tc39/proposal-async-iteration

Stage 2, and Babel supports it as of 6.8.0.

@samwgoldman
Copy link
Member

woah—cool

@zertosh
Copy link
Member

zertosh commented Oct 1, 2016

Stage 3: tc39/proposals@96f8d79

@samwgoldman
Copy link
Member

Thanks for the update. Let's do it :)

@mroch mroch changed the title Implement ES7 async iterators (stage 2) Implement ES7 async iterators (stage 3) Oct 1, 2016
@samwgoldman samwgoldman changed the title Implement ES7 async iterators (stage 3) Implement async iteration proposal (stage 3) Oct 13, 2016
@samwgoldman samwgoldman self-assigned this Oct 13, 2016
@samwgoldman
Copy link
Member

@zertosh let me know if you run into any issues with the implementation that just landed. I'm sure I messed up somewhere :)

@BenoitZugmeyer
Copy link

Really looking forward to use this!

I just tried it quickly, a few notes:

  • AsyncIterators have optional methods return and throw (well, Iterators too)
  • AsyncIterators are basically a superset of Iterators, in the sense that:
    • the .next method can return Promise<IteratorResult>|IteratorResult
    • for await can iterate on both AsyncIterators and Iterators
  • Symbol.asyncIterator definition is missing

@zertosh
Copy link
Member

zertosh commented Oct 20, 2016

Thanks @samwgoldman! Looks like this is going into 0.34.0, so I'll add the transform support in Nuclide so we can take it for a test drive :)

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

No branches or pull requests

4 participants