MCPcopy
hub / github.com/harness/harness / ReaderCanceler

Struct ReaderCanceler

events/reader.go:119–122  ·  view source on GitHub ↗

ReaderCanceler exposes the functionality to cancel a reader explicitly.

Source from the content-addressed store, hash-verified

117
118// ReaderCanceler exposes the functionality to cancel a reader explicitly.
119type ReaderCanceler struct {
120 canceled bool
121 cancelFn func() error
122}
123
124func (d *ReaderCanceler) Cancel() error {
125 if d.canceled {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected