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

Function ErrorHandler

nats.go:1328–1333  ·  view source on GitHub ↗

ErrorHandler is an Option to set the async error handler.

(cb ErrHandler)

Source from the content-addressed store, hash-verified

1326
1327// ErrorHandler is an Option to set the async error handler.
1328func ErrorHandler(cb ErrHandler) Option {
1329 return func(o *Options) error {
1330 o.AsyncErrorCB = cb
1331 return nil
1332 }
1333}
1334
1335// UserInfo is an Option to set the username and password to
1336// use when not included directly in the URLs.

Callers 1

Calls

no outgoing calls

Tested by 1