betty.contextlib module¶
Provide context manager utilities.
- class betty.contextlib.SynchronizedContextManager[source]¶
Bases:
Generic[_ContextT]Make an asynchronous context manager synchronous.
- Parameters:
context_manager (
typing.AsyncContextManager[typing.TypeVar(_ContextT)])
- __init__(context_manager: AsyncContextManager[betty.contextlib._ContextT])[source]¶
- Parameters:
context_manager (
typing.AsyncContextManager[typing.TypeVar(_ContextT)])