CloseWithError causes the next Read (waking up a current blocked Read if needed) to return the provided err after all data has been read. The error must be non-nil.
(err error)
| 109 | // |
| 110 | // The error must be non-nil. |
| 111 | func (p *pipe) CloseWithError(err error) { p.closeWithError(&p.err, err, nil) } |
| 112 | |
| 113 | // BreakWithError causes the next Read (waking up a current blocked |
| 114 | // Read if needed) to return the provided err immediately, without |
no test coverage detected