Skip to content

common

get_running_thread

get_running_thread() -> threading.Thread | None

Returns the current running thread.

get_running_loop

get_running_loop() -> asyncio.AbstractEventLoop | None

Returns the current running event loop or None if there is no running loop.

get_awaitable

get_awaitable(future: FutureLike) -> Awaitable

Converts a Future-like object to an awaitable. Should be called from async context.