MCPcopy
hub / github.com/gin-gonic/gin / Done

Method Done

context.go:1449–1454  ·  view source on GitHub ↗

Done returns nil (chan which will wait forever) when c.Request has no Context.

()

Source from the content-addressed store, hash-verified

1447
1448// Done returns nil (chan which will wait forever) when c.Request has no Context.
1449func (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.
1457func (c *Context) Err() error {

Calls 1

hasRequestContextMethod · 0.95