FakeProducer
faststream.nats.test.FakeProducer #
FakeProducer(broker: NatsBroker)
Bases: NatsFastProducer
Source code in faststream/nats/test.py
publish async
#
publish(message: SendableMessage, subject: str, reply_to: str = '', headers: Optional[Dict[str, str]] = None, correlation_id: Optional[str] = None, timeout: Optional[float] = None, stream: Optional[str] = None, *, rpc: bool = False, rpc_timeout: Optional[float] = None, raise_timeout: bool = False) -> Optional[SendableMessage]