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

Function PublishAsyncErrHandler

js.go:977–982  ·  view source on GitHub ↗

PublishAsyncErrHandler sets the error handler for async publishes in JetStream.

(cb MsgErrHandler)

Source from the content-addressed store, hash-verified

975
976// PublishAsyncErrHandler sets the error handler for async publishes in JetStream.
977func PublishAsyncErrHandler(cb MsgErrHandler) JSOpt {
978 return jsOptFn(func(js *jsOpts) error {
979 js.aecb = cb
980 return nil
981 })
982}
983
984// PublishAsyncMaxPending sets the maximum outstanding async publishes that can be inflight at one time.
985func PublishAsyncMaxPending(max int) JSOpt {

Callers 1

PutMethod · 0.85

Calls 1

jsOptFnFuncType · 0.85

Tested by

no test coverage detected