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

Method Shutdown

util/execqueue/execqueue.go:82–89  ·  view source on GitHub ↗

Shutdown asynchronously signals the queue to stop.

()

Source from the content-addressed store, hash-verified

80
81// Shutdown asynchronously signals the queue to stop.
82func (q *ExecQueue) Shutdown() {
83 q.mu.Lock()
84 defer q.mu.Unlock()
85 q.closed = true
86 if q.cancel != nil {
87 q.cancel()
88 }
89}
90
91func (q *ExecQueue) initCtxLocked() {
92 if q.ctx == nil {

Callers 2

TestExecQueueFunction · 0.95

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by 2

TestExecQueueFunction · 0.76