package bgreader

Import Path
	github.com/jackc/pgx/v5/pgconn/internal/bgreader (on go.dev)

Dependency Relation
	imports 3 packages, and imported by one package

Involved Source Files Package bgreader provides a io.Reader that can optionally buffer reads in the background.
Package-Level Type Names (only one)
/* sort by: | */
BGReader is an io.Reader that can optionally buffer reads in the background. It is safe for concurrent use. Read implements the io.Reader interface. 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. Status returns the current status of the background reader. Stop tells the background reader to stop after the in progress Read returns. It is safe to call Stop when the background reader is not running. *BGReader : io.Reader func New(r io.Reader) *BGReader
Package-Level Functions (only one)
func New(r io.Reader) *BGReader
Package-Level Constants (total 3)
const StatusRunning = 1
const StatusStopped = 0
const StatusStopping = 2