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

Idea: Usable as AsycInterator #279

Open
mAAdhaTTah opened this issue Jun 18, 2018 · 0 comments
Open

Idea: Usable as AsycInterator #279

mAAdhaTTah opened this issue Jun 18, 2018 · 0 comments

Comments

@mAAdhaTTah
Copy link
Collaborator

I'm not entirely sure of the implementation, but Observables should lend themselves to being async iterable:

// resolves on each value emitted
for await (const value of obs$) {
  // iterator closes when observable ends
}
// throw on error?

Would this be useful to implement?

@mAAdhaTTah mAAdhaTTah changed the title Idea: Convertable as AsycInterator Idea: Usable as AsycInterator Jun 18, 2018
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

1 participant