MCPcopy
hub / github.com/tailscale/tailscale / Go

Method Go

util/goroutines/tracker.go:22–26  ·  view source on GitHub ↗
(f func())

Source from the content-addressed store, hash-verified

20}
21
22func (t *Tracker) Go(f func()) {
23 t.started.Add(1)
24 t.running.Add(1)
25 go t.goAndDecr(f)
26}
27
28func (t *Tracker) goAndDecr(f func()) {
29 defer t.decr()

Callers 15

TestDialTCPFunction · 0.80
TestDialUDPFunction · 0.80
closeMethod · 0.80
TestDeferredInitFunction · 0.80
TestDeferredErrFunction · 0.80
TestDeferAfterDoFunction · 0.80
StartMethod · 0.80
TestEmbedNodeInfoFunction · 0.80
TestUpdateRaceFunction · 0.80
RunAllHandlerMethod · 0.80

Calls 2

goAndDecrMethod · 0.95
AddMethod · 0.65

Tested by 15

TestDialTCPFunction · 0.64
TestDialUDPFunction · 0.64
TestDeferredInitFunction · 0.64
TestDeferredErrFunction · 0.64
TestDeferAfterDoFunction · 0.64
TestEmbedNodeInfoFunction · 0.64
TestUpdateRaceFunction · 0.64
TestMutexValueFunction · 0.64
TestMapFunction · 0.64
TestMultipleRecordersFunction · 0.64