contexts¶
Functions
Execute the decorated function in an asyncio event loop. |
- laminar.utils.contexts.EventLoop(func: T) T ¶
Execute the decorated function in an asyncio event loop.
Usage:
from laminar.utils import contexts @contexts.EventLoop async def main() -> None: ...
Classes