type context.CancelFunc
34 uses
context (current package)
context.go#L231: type CancelFunc func()
context.go#L240: func WithCancel(parent Context) (ctx Context, cancel CancelFunc) {
context.go#L616: func WithDeadline(parent Context, d time.Time) (Context, CancelFunc) {
context.go#L623: func WithDeadlineCause(parent Context, d time.Time, cause error) (Context, CancelFunc) {
context.go#L694: func WithTimeout(parent Context, timeout time.Duration) (Context, CancelFunc) {
context.go#L701: func WithTimeoutCause(parent Context, timeout time.Duration, cause error) (Context, CancelFunc) {
crypto/tls
quic.go#L157: cancel context.CancelFunc
tls.go#L124: var cancel context.CancelFunc
tls.go#L130: var cancel context.CancelFunc
go.pact.im/x/process
process.go#L55: cancel context.CancelFunc
process.go#L99: var cancel context.CancelFunc
process.go#L155: var cancel context.CancelFunc
golang.org/x/net/http2
http2.go#L391: ContextWithTimeout(ctx context.Context, d time.Duration) (context.Context, context.CancelFunc)
transport.go#L222: func (t *Transport) contextWithTimeout(ctx context.Context, d time.Duration) (context.Context, context.CancelFunc) {
google.golang.org/grpc
clientconn.go#L218: var cancel context.CancelFunc
clientconn.go#L469: cancel context.CancelFunc // Cancelled on close.
clientconn.go#L1073: cancel context.CancelFunc
stream.go#L242: var cancel context.CancelFunc
stream.go#L509: cancel context.CancelFunc // cancels all attempts
stream.go#L1276: cancel context.CancelFunc
google.golang.org/grpc/internal/resolver/dns
dns_resolver.go#L181: cancel context.CancelFunc
google.golang.org/grpc/internal/transport
handler_server.go#L348: var cancel context.CancelFunc
http2_client.go#L64: cancel context.CancelFunc
transport.go#L248: cancel context.CancelFunc // always nil for client side Stream
net
dial.go#L680: var cancel context.CancelFunc
lookup.go#L337: dnsWaitGroupDone := func(ch <-chan singleflight.Result, cancelFn context.CancelFunc) {
net/http
h2_bundle.go#L3927: ContextWithTimeout(ctx context.Context, d time.Duration) (context.Context, context.CancelFunc)
h2_bundle.go#L7657: func (t *http2Transport) contextWithTimeout(ctx context.Context, d time.Duration) (context.Context, context.CancelFunc) {
server.go#L260: cancelCtx context.CancelFunc
server.go#L428: cancelCtx context.CancelFunc // when ServeHTTP exits
server.go#L3809: var cancelCtx context.CancelFunc
transport.go#L1312: cancelCtx context.CancelFunc
net/http/httputil
reverseproxy.go#L351: var cancel context.CancelFunc
testing
testing.go#L667: cancelCtx context.CancelFunc