pydantic_aioredis.utils.NestedAsyncIO¶
- class pydantic_aioredis.utils.NestedAsyncIO(*args, **kwargs)¶
Bases:
object- __init__(loop=None)¶
Methods
__init__([loop])apply([loop])Patch asyncio to make its event loop reentrant.
Patch asyncio module to use pure Python tasks and futures.
patch_loop(loop)Patch loop to make it reentrant.
Patch the policy to always return a patched loop.
If tornado is imported before nest_asyncio, make tornado aware of the pure-Python asyncio Future.
revert()unpatch_asyncio()unpatch_loop(loop)unpatch_policy()unpatch_tornado()Attributes
orig_runorig_tasksorig_futuresorig_loop_attrspolicy_get_looporig_get_loopsorig_tcpatched- apply(loop=None)¶
Patch asyncio to make its event loop reentrant.
- patch_asyncio()¶
Patch asyncio module to use pure Python tasks and futures.
- patch_loop(loop)¶
Patch loop to make it reentrant.
- patch_policy()¶
Patch the policy to always return a patched loop.
- patch_tornado()¶
If tornado is imported before nest_asyncio, make tornado aware of the pure-Python asyncio Future.