MCPcopy
hub / github.com/tailscale/tailscale / ready

Method ready

ipn/ipnlocal/node_backend.go:759–765  ·  view source on GitHub ↗

ready signals that [LocalBackend] has completed the switch to this [nodeBackend] and any pending calls to [nodeBackend.Wait] must be unblocked.

()

Source from the content-addressed store, hash-verified

757// ready signals that [LocalBackend] has completed the switch to this [nodeBackend]
758// and any pending calls to [nodeBackend.Wait] must be unblocked.
759func (nb *nodeBackend) ready() {
760 nb.mu.Lock()
761 defer nb.mu.Unlock()
762 if nb.readyCh != nil {
763 close(nb.readyCh)
764 }
765}
766
767// Wait blocks until [LocalBackend] completes the switch to this [nodeBackend]
768// and calls [nodeBackend.ready]. It returns an error if the provided context

Callers 6

TestNodeBackendReadinessFunction · 0.80
NewLocalBackendFunction · 0.80
currentNodeMethod · 0.80

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65