Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CancelableReadCloser ¶
type CancelableReadCloser struct {
// contains filtered or unexported fields
}
CancelableReadCloser essentially reads from the provided reader so that it can be read by the Read(..) method.
The read allows the caller to cancel (i.e via close) the reader without waiting for the read to be stuck in a blocking mode.
see: _examples/ex_cancelable_reader.go for example usage
func NewCancelableReadCloser ¶
func NewCancelableReadCloser(ctx context.Context) *CancelableReadCloser
func (*CancelableReadCloser) Close ¶
func (crc *CancelableReadCloser) Close() error
Click to show internal directories.
Click to hide internal directories.