MCPcopy
hub / github.com/nats-io/nats.go / PublishAsync

Method PublishAsync

js.go:49–49  ·  view source on GitHub ↗

PublishAsync publishes a message to JetStream and returns a PubAckFuture. The data should not be changed until the PubAckFuture has been processed.

(subj string, data []byte, opts ...PubOpt)

Source from the content-addressed store, hash-verified

47 // PublishAsync publishes a message to JetStream and returns a PubAckFuture.
48 // The data should not be changed until the PubAckFuture has been processed.
49 PublishAsync(subj string, data []byte, opts ...PubOpt) (PubAckFuture, error)
50
51 // PublishMsgAsync publishes a Msg to JetStream and returns a PubAckFuture.
52 // The message should not be changed until the PubAckFuture has been processed.

Calls

no outgoing calls