Undocumented
Class |
|
Undocumented |
Class | greenlet |
Undocumented |
Function | await |
Awaits an async function in a sync method. |
Function | await |
Awaits an async function in a sync method. |
Function | get |
vendor asyncio.get_event_loop() for python 3.7 and above. |
Function | getcurrent |
Undocumented |
Async Function | greenlet |
Runs a sync function ``fn`` in a new greenlet. |
Function | is |
Undocumented |
Class | _ |
Undocumented |
Function | _util |
for test suite/ util only |
Function | _util |
for test suite/ util only |
Type Variable | _T |
Undocumented |
Variable | _has |
Undocumented |
Awaits an async function in a sync method. The sync method must be inside a :func:`greenlet_spawn` context. :func:`await_fallback` calls cannot be nested. :param awaitable: The coroutine to call.
Awaits an async function in a sync method. The sync method must be inside a :func:`greenlet_spawn` context. :func:`await_only` calls cannot be nested. :param awaitable: The coroutine to call.
vendor asyncio.get_event_loop() for python 3.7 and above. Python 3.10 deprecates get_event_loop() as a standalone.
Callable[ ..., _T]
, *args: Any
, _require_await: bool
= False, **kwargs: Any
) -> _T
:
(source)
¶
Runs a sync function ``fn`` in a new greenlet. The sync function can then use :func:`await_only` to wait for async functions. :param fn: The sync callable to call. :param \*args: Positional arguments to pass to the ``fn`` callable. :param \*\*kwargs: Keyword arguments to pass to the ``fn`` callable.
Callable[ ..., Coroutine[ Any, Any, Any]]
, *args: Any
, **kwargs: Any
) -> Any
:
(source)
¶
for test suite/ util only