Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContextualReadCloser ¶
type ContextualReadCloser struct { Ctx context.Context Reader io.ReadCloser }
ContextualReadCloser is a wrapper around an io.ReadCloser that cancels the read operation when the context is canceled.
func (ContextualReadCloser) Close ¶
func (crc ContextualReadCloser) Close() error
Click to show internal directories.
Click to hide internal directories.