Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HardCancelReader ¶
A reader that will stop returning data after its context has been canceled.
If any data is read from the underlying stream after the cancel happens, throw the data out.
func NewHardCancelReader ¶
func NewHardCancelReader(ctx context.Context, reader io.Reader) *HardCancelReader
func (*HardCancelReader) LastReadTime ¶ added in v0.17.11
func (r *HardCancelReader) LastReadTime() time.Time
Click to show internal directories.
Click to hide internal directories.