NatsJSFastProducer
faststream.nats.producer.NatsJSFastProducer #
NatsJSFastProducer(
connection: JetStreamContext,
parser: Optional[AsyncCustomParser[Msg, NatsMessage]],
decoder: Optional[AsyncCustomDecoder[NatsMessage]],
)
Source code in faststream/nats/producer.py
publish async
#
publish(
message: SendableMessage,
subject: str,
headers: Optional[Dict[str, str]] = None,
reply_to: str = "",
correlation_id: Optional[str] = None,
stream: Optional[str] = None,
timeout: Optional[float] = None,
*,
rpc: bool = False,
rpc_timeout: Optional[float] = 30.0,
raise_timeout: bool = False
) -> Optional[DecodedMessage]
Source code in faststream/nats/producer.py
Last update: 2023-11-13