Skip to content

Convert async iterator to Obervable #422

Description

@samfrances

Does RxPY provide a facility for converting async iterators into Observables?

For example, if I have:

async foo():
    for x in range(5):
        result = await get_data_from_somewhere(x)
        yield result

Is there a straightforward way of converting this into an Observable? (Obviously, I would only expect this to work when running using the AsyncIOScheduler).

If this isn't available, can I suggest that this would be a welcome feature?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions