hypercorn.asyncio.context module

class hypercorn.asyncio.context.Context(task_group: hypercorn.asyncio.task_group.TaskGroup)

Bases: object

event_class

alias of EventWrapper

async static sleep(wait: Union[float, int]) → None
spawn(func: Callable, *args: Any) → None
async spawn_app(app: Union[Type[hypercorn.typing.ASGI2Protocol], Callable[[dict, Callable, Callable], Awaitable[None]]], config: hypercorn.config.Config, scope: dict, send: Callable[[dict], Awaitable[None]]) → Callable[[dict], Awaitable[None]]
static time() → float
class hypercorn.asyncio.context.EventWrapper

Bases: object

async clear() → None
async set() → None
async wait() → None