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

Method PublishAsync

js.go:1005–1007  ·  view source on GitHub ↗

PublishAsync publishes a message to JetStream and returns a PubAckFuture

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

Source from the content-addressed store, hash-verified

1003
1004// PublishAsync publishes a message to JetStream and returns a PubAckFuture
1005func (js *js) PublishAsync(subj string, data []byte, opts ...PubOpt) (PubAckFuture, error) {
1006 return js.PublishMsgAsync(&Msg{Subject: subj, Data: data}, opts...)
1007}
1008
1009const defaultStallWait = 200 * time.Millisecond
1010

Callers

nothing calls this directly

Calls 1

PublishMsgAsyncMethod · 0.95

Tested by

no test coverage detected