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()

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.

revert()

unpatch_asyncio()

unpatch_loop(loop)

unpatch_policy()

unpatch_tornado()

Attributes

orig_run

orig_tasks

orig_futures

orig_loop_attrs

policy_get_loop

orig_get_loops

orig_tc

patched

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.