(p []byte)
| 46 | } |
| 47 | |
| 48 | func (r *reader) Read(p []byte) (n int, err error) { |
| 49 | select { |
| 50 | case <-r.ctx.Done(): |
| 51 | return 0, r.ctx.Err() |
| 52 | default: |
| 53 | return r.r.Read(p) |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | type writer struct { |
| 58 | ctx context.Context |
no outgoing calls
no test coverage detected