Documentation ¶
Overview ¶
Package bgreader provides a io.Reader that can optionally buffer reads in the background.
Index ¶
Constants ¶
View Source
const ( StatusStopped = iota StatusRunning StatusStopping )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BGReader ¶
type BGReader struct {
// contains filtered or unexported fields
}
BGReader is an io.Reader that can optionally buffer reads in the background. It is safe for concurrent use.
func (*BGReader) Start ¶
func (r *BGReader) Start()
Start starts the backgrounder reader. If the background reader is already running this is a no-op. The background reader will stop automatically when the underlying reader returns an error.
Click to show internal directories.
Click to hide internal directories.