closeWithErrorAndCode is like CloseWithError but also sets some code to run in the caller's goroutine before returning the error.
(err error, fn func())
| 118 | // closeWithErrorAndCode is like CloseWithError but also sets some code to run |
| 119 | // in the caller's goroutine before returning the error. |
| 120 | func (p *pipe) closeWithErrorAndCode(err error, fn func()) { p.closeWithError(&p.err, err, fn) } |
| 121 | |
| 122 | func (p *pipe) closeWithError(dst *error, err error, fn func()) { |
| 123 | if err == nil { |
no test coverage detected