Protocols
provide.foundation.hub.protocols
¶
TODO: Add module docstring.
Classes¶
AsyncContextResource
¶
Bases: AbstractAsyncContextManager[Any]
Base class for async context-managed resources.
Initialize with a resource factory.
Source code in provide/foundation/hub/protocols.py
Functions¶
__aenter__
async
¶
__aexit__
async
¶
Exit async context and cleanup resource.
Source code in provide/foundation/hub/protocols.py
AsyncInitializable
¶
Bases: Protocol
Protocol for components that support async lazy initialization.