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

Method ErrorHandler

nats.go:1773–1780  ·  view source on GitHub ↗

ErrorHandler will return the async error handler.

()

Source from the content-addressed store, hash-verified

1771
1772// ErrorHandler will return the async error handler.
1773func (nc *Conn) ErrorHandler() ErrHandler {
1774 if nc == nil {
1775 return nil
1776 }
1777 nc.mu.Lock()
1778 defer nc.mu.Unlock()
1779 return nc.Opts.AsyncErrorCB
1780}
1781
1782// Process the url string argument to Connect.
1783// Return an array of urls, even if only one.

Calls

no outgoing calls