Skip to content

Idea: Usable as AsycInterator #279

@mAAdhaTTah

Description

@mAAdhaTTah

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions