unitelabs.bus.factories.transport_factory

Attributes

  • Name
    P
    Type
    Value

    = typing.TypeVar('P', bound=asyncio.Protocol)

    Description

Classes

  • TransportFactory

    Interface representing a factory for creating transports.

    Bases
    typing.Protocol

    Methods

    • __call__(
        self,
        protocol_factory : typing.Callable[..., P],
        **kwargs
      ) -> tuple[Transport, P]

      Parameters

      • Name
        self
        Type
        Default
        Description

      • Name
        protocol_factory
        Type
        typing.Callable[..., P]
        Default
        Description

      • Name
        **kwargs
        Type
        Default
        = {}
        Description

      Response

      Type
      tuple[Transport, P]
      Description

Copyright © 2024