func context.WithCancel

23 uses

	context (current package)
		context.go#L235: func WithCancel(parent Context) (ctx Context, cancel CancelFunc) {
		context.go#L619: 		return WithCancel(parent)

	crypto/tls
		conn.go#L1503: 	handshakeCtx, cancel := context.WithCancel(ctx)

	github.com/gotd/td/internal/mtproto
		conn.go#L195: 	ctx, cancel := context.WithCancel(ctx)

	github.com/gotd/td/internal/pool
		pool.go#L54: 	ctx, cancel := context.WithCancel(ctx)

	github.com/gotd/td/internal/rpc
		engine.go#L47: 	reqCtx, reqCancel := context.WithCancel(context.Background())
		engine.go#L83: 	retryCtx, retryClose := context.WithCancel(ctx)
		engine.go#L179: 	ctx, cancel := context.WithCancel(ctx)

	github.com/gotd/td/internal/tdsync
		cancel_group.go#L32: 	ctx, cancel := context.WithCancel(parent)
		supervisor.go#L23: 	ctx, cancel := context.WithCancel(parent)

	github.com/gotd/td/telegram
		connect.go#L112: 	c.ctx, c.cancel = context.WithCancel(ctx)

	github.com/gotd/td/telegram/dcs
		plain.go#L154: 	dialCtx, dialCancel := context.WithCancel(ctx)

	net
		dial.go#L467: 		subCtx, cancel := context.WithCancel(ctx)
		dial.go#L547: 	primaryCtx, primaryCancel := context.WithCancel(ctx)
		dial.go#L558: 			fallbackCtx, fallbackCancel := context.WithCancel(ctx)
		lookup.go#L319: 	lookupGroupCtx, lookupGroupCancel := context.WithCancel(withUnexpiredValuesPreserved(ctx))

	net/http
		h2_bundle.go#L4347: 	ctx, cancel = context.WithCancel(opts.context())
		h2_bundle.go#L5932: 	ctx, cancelCtx := context.WithCancel(sc.baseCtx)
		server.go#L1034: 	ctx, cancelCtx := context.WithCancel(ctx)
		server.go#L1925: 	ctx, cancelCtx := context.WithCancel(ctx)

	nhooyr.io/websocket
		netconn.go#L58: 	nc.writeCtx, nc.writeCancel = context.WithCancel(ctx)
		netconn.go#L59: 	nc.readCtx, nc.readCancel = context.WithCancel(ctx)
		read.go#L64: 	ctx, cancel := context.WithCancel(ctx)