MCPcopy Index your code
hub / github.com/tailscale/tailscale / initCtxLocked

Method initCtxLocked

util/execqueue/execqueue.go:91–95  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

89}
90
91func (q *ExecQueue) initCtxLocked() {
92 if q.ctx == nil {
93 q.ctx, q.cancel = context.WithCancel(context.Background())
94 }
95}
96
97var errExecQueueShutdown = errors.New("execqueue shut down")
98

Callers 3

AddMethod · 0.95
RunSyncMethod · 0.95
WaitMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected