Protocols
🤖 AI-Generated Content
This documentation was generated with AI assistance and is still being audited. Some, or potentially a lot, of this information may be inaccurate. Learn more.
provide.foundation.hub.protocols
¶
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.