MCPcopy Index your code
hub / github.com/coder/coder / close

Method close

tailnet/node.go:88–96  ·  view source on GitHub ↗

close closes the nodeUpdate and stops it calling the node callback

()

Source from the content-addressed store, hash-verified

86
87// close closes the nodeUpdate and stops it calling the node callback
88func (u *nodeUpdater) close() {
89 u.L.Lock()
90 defer u.L.Unlock()
91 u.closing = true
92 u.Broadcast()
93 for u.phase != closed {
94 u.Wait()
95 }
96}
97
98func newNodeUpdater(
99 logger slog.Logger, callback func(n *Node),

Callers

nothing calls this directly

Calls 3

WaitMethod · 0.65
LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected