module documentation

Define asynchronous protocols for the SDK.

The channel and related components implement these small typing.Protocol interfaces. Applicable protocols support runtime checks for unit tests.

Class ClientChannelInterface Protocol describing the minimal channel operations required by SDK clients.
Class GracefulInterface Define components that support controlled asynchronous shutdown.
Class SyncronizerInterface Define objects that run awaitables synchronously.
Function release_address_channel Release a transport through the SDK's non-masking lifecycle path.
Type Variable T Undocumented
def release_address_channel(channel: ClientChannelInterface, chan: AddressChannel | None, *, discard: bool = False): (source)

Release a transport through the SDK's non-masking lifecycle path.

Older or custom channel implementations do not expose release_channel; those retain the original return/discard behavior.

Undocumented

Value
TypeVar('T')