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

Function WithPublishAsyncErrHandler

jetstream/jetstream_options.go:41–46  ·  view source on GitHub ↗

WithPublishAsyncErrHandler sets error handler for async message publish.

(cb MsgErrHandler)

Source from the content-addressed store, hash-verified

39
40// WithPublishAsyncErrHandler sets error handler for async message publish.
41func WithPublishAsyncErrHandler(cb MsgErrHandler) JetStreamOpt {
42 return func(opts *JetStreamOptions) error {
43 opts.publisherOpts.aecb = cb
44 return nil
45 }
46}
47
48// WithPublishAsyncMaxPending sets the maximum outstanding async publishes that
49// can be inflight at one time.

Callers 4

PutMethod · 0.85

Calls

no outgoing calls

Tested by 3