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

What about async generators? #7

Open
njlr opened this issue Mar 2, 2018 · 0 comments
Open

What about async generators? #7

njlr opened this issue Mar 2, 2018 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested

Comments

@njlr
Copy link
Owner

njlr commented Mar 2, 2018

We should support async generators somehow.

const f = async function * () {
  await somethingAsync();
  yield 1;
  await anotherThingAsync();
  yield 2;
}

// Iteration requires the await keyword
async () => {
  for await (const x of f()) {
    console.log(x);
  }
};
  • Will we need to add any run-time dependencies?
  • Do the functions belong here or in another library?
  • Should we do dynamic dispatch on the existing functions?
@njlr njlr added enhancement New feature or request help wanted Extra attention is needed question Further information is requested labels Mar 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant