FakeProducer
faststream.nats.test.FakeProducer #
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,
stream: Optional[str] = None,
correlation_id: Optional[str] = None,
*,
rpc: bool = False,
rpc_timeout: Optional[float] = None,
raise_timeout: bool = False
) -> Optional[SendableMessage]
Source code in faststream/nats/test.py
Last update: 2023-11-13