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

feature request: unapply #69

Open
hjalmarlucius opened this issue Dec 31, 2021 · 1 comment
Open

feature request: unapply #69

hjalmarlucius opened this issue Dec 31, 2021 · 1 comment

Comments

@hjalmarlucius
Copy link

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
@rmorshea
Copy link

Yes please! nest-asyncio can break a lot of other packages that aren't expecting it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants