WithPublishAsyncErrHandler sets error handler for async message publish.
(cb MsgErrHandler)
| 39 | |
| 40 | // WithPublishAsyncErrHandler sets error handler for async message publish. |
| 41 | func 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. |
no outgoing calls