ReaderCanceler exposes the functionality to cancel a reader explicitly.
| 117 | |
| 118 | // ReaderCanceler exposes the functionality to cancel a reader explicitly. |
| 119 | type ReaderCanceler struct { |
| 120 | canceled bool |
| 121 | cancelFn func() error |
| 122 | } |
| 123 | |
| 124 | func (d *ReaderCanceler) Cancel() error { |
| 125 | if d.canceled { |
nothing calls this directly
no outgoing calls
no test coverage detected