Skip to content
This repository was archived by the owner on Mar 6, 2024. It is now read-only.
This repository was archived by the owner on Mar 6, 2024. It is now read-only.

feature request: unapply #69

@hjalmarlucius

Description

@hjalmarlucius

It would be great to have an unapply function or the ability to use this as a context manager so that one can allow nested asyncio only in special circumstances, e.g.:

async def afunc():
    ...

def func():
    with nested_asyncio.apply_now() as loop:
        loop.run_until_complete(afunc)
    asyncio.get_event_loop().loop.run_until_complete(afunc) <- raises error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions