Skip to content

RealProducer

faststream.confluent.publisher.state.RealProducer #

RealProducer(producer)
Source code in faststream/confluent/publisher/state.py
def __init__(self, producer: "AsyncConfluentProducer") -> None:
    self.producer = producer

producer instance-attribute #

producer = producer

stop async #

stop()
Source code in faststream/confluent/publisher/state.py
async def stop(self) -> None:
    await self.producer.stop()

ping async #

ping(timeout)
Source code in faststream/confluent/publisher/state.py
async def ping(self, timeout: float) -> bool:
    return await self.producer.ping(timeout=timeout)

flush async #

flush()
Source code in faststream/confluent/publisher/state.py
async def flush(self) -> None:
    await self.producer.flush()