Close waits for the current write to finish. Further writes will return error
()
| 170 | |
| 171 | // Close waits for the current write to finish. Further writes will return error |
| 172 | func (c *Conn) Close() { |
| 173 | c.writeLock.Lock() |
| 174 | defer c.writeLock.Unlock() |
| 175 | c.done = true |
| 176 | } |
no outgoing calls