ErrorHandler will return the async error handler.
()
| 1771 | |
| 1772 | // ErrorHandler will return the async error handler. |
| 1773 | func (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. |
no outgoing calls