If Close() is called while a Write is blocked, the Write will return an error and buffered data may be discarded.
()
| 169 | |
| 170 | // If Close() is called while a Write is blocked, the Write will return an error and buffered data may be discarded. |
| 171 | func (w *Writer) Close() error { |
| 172 | return w.CloseWithError(nil) |
| 173 | } |
| 174 | |
| 175 | // If CloseWithError() is called while a Write is blocked, the Write will return an error and buffered data may be discarded. |
| 176 | func (w *Writer) CloseWithError(err error) error { |