func context.WithTimeout

16 uses

	context (current package)
		context.go#L684: func WithTimeout(parent Context, timeout time.Duration) (Context, CancelFunc) {

	crypto/tls
		tls.go#L123: 		ctx, cancel = context.WithTimeout(ctx, netDialer.Timeout)

	github.com/gotd/td/internal/exchange
		proto.go#L39: 	ctx, cancel := context.WithTimeout(ctx, w.timeout)
		proto.go#L45: 	ctx, cancel := context.WithTimeout(ctx, w.timeout)

	github.com/gotd/td/internal/mtproto
		connect.go#L16: 	ctx, cancel := context.WithTimeout(ctx, c.dialTimeout)
		ping.go#L110: 				ctx, cancel := context.WithTimeout(ctx, c.pingTimeout)
		rpc.go#L51: 	ctx, cancel := context.WithTimeout(context.Background(),
		salt.go#L40: 	ctx, cancel := context.WithTimeout(ctx, c.getTimeout(request.TypeID()))

	github.com/gotd/td/telegram
		migrate_to_dc.go#L49: 	mctx, cancel := context.WithTimeout(ctx, c.migrationTimeout)

	net/http
		h2_bundle.go#L7914: 	ctx, cancel := context.WithTimeout(context.Background(), pingTimeout)
		server.go#L3380: 		ctx, cancelCtx = context.WithTimeout(r.Context(), h.dt)
		transport.go#L1704: 			newCtx, cancel := context.WithTimeout(ctx, 1*time.Minute)

	nhooyr.io/websocket
		close.go#L175: 	ctx, cancel := context.WithTimeout(context.Background(), time.Second*5)
		dial.go#L64: 		ctx, cancel = context.WithTimeout(ctx, o.HTTPClient.Timeout)
		read.go#L282: 	ctx, cancel := context.WithTimeout(ctx, time.Second*5)
		write.go#L235: 	ctx, cancel := context.WithTimeout(ctx, time.Second*5)