AioPikaFastProducerImpl
faststream.rabbit.publisher.producer.AioPikaFastProducerImpl #
AioPikaFastProducerImpl(
*,
declarer: RabbitDeclarer,
parser: Optional[CustomCallable],
decoder: Optional[CustomCallable],
)
Bases: AioPikaFastProducer
A class for fast producing messages using aio-pika.
Source code in faststream/rabbit/publisher/producer.py
connect #
connect(
serializer: Optional[SerializerProto] = None,
) -> None
Lock initialization.
Should be called in async context due anyio.Lock object can't be created outside event loop.
Source code in faststream/rabbit/publisher/producer.py
disconnect #
publish async #
publish(
cmd: RabbitPublishCommand,
) -> Optional[ConfirmationFrameType]
Source code in faststream/rabbit/publisher/producer.py
request async #
request(cmd: RabbitPublishCommand) -> IncomingMessage
Source code in faststream/rabbit/publisher/producer.py
publish_batch async #
publish_batch(cmd: RabbitPublishCommand) -> None