Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pipe ¶
type Pipe struct {
// contains filtered or unexported fields
}
Pipe is a goroutine-safe io.Reader/io.Writer pair. It's like io.Pipe except there are no PipeReader/PipeWriter halves, and the underlying buffer is an interface. (io.Pipe is always unbuffered)
func (*Pipe) BreakWithError ¶
BreakWithError causes the next Read (waking up a current blocked Read if needed) to return the provided err immediately, without waiting for unread data.
func (*Pipe) CloseWithError ¶
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.
func (*Pipe) Done ¶
func (p *Pipe) Done() <-chan struct{}
Done returns a channel which is closed if and when this pipe is closed with CloseWithError.
Click to show internal directories.
Click to hide internal directories.