IsClosed tests if a Conn has been closed.
()
| 6053 | |
| 6054 | // IsClosed tests if a Conn has been closed. |
| 6055 | func (nc *Conn) IsClosed() bool { |
| 6056 | nc.mu.RLock() |
| 6057 | defer nc.mu.RUnlock() |
| 6058 | return nc.isClosed() |
| 6059 | } |
| 6060 | |
| 6061 | // IsReconnecting tests if a Conn is reconnecting. |
| 6062 | func (nc *Conn) IsReconnecting() bool { |