Done returns nil (chan which will wait forever) when c.Request has no Context.
()
| 1447 | |
| 1448 | // Done returns nil (chan which will wait forever) when c.Request has no Context. |
| 1449 | func (c *Context) Done() <-chan struct{} { |
| 1450 | if !c.hasRequestContext() { |
| 1451 | return nil |
| 1452 | } |
| 1453 | return c.Request.Context().Done() |
| 1454 | } |
| 1455 | |
| 1456 | // Err returns nil when c.Request has no Context. |
| 1457 | func (c *Context) Err() error { |