MCPcopy
hub / github.com/tailscale/tailscale / addFunc

Method addFunc

wgengine/userspace.go:1608–1608  ·  view source on GitHub ↗
(fn func())

Source from the content-addressed store, hash-verified

1606
1607func (p *closeOnErrorPool) add(c io.Closer) { *p = append(*p, func() { c.Close() }) }
1608func (p *closeOnErrorPool) addFunc(fn func()) { *p = append(*p, fn) }
1609func (p closeOnErrorPool) closeAllIfError(errp *error) {
1610 if *errp != nil {
1611 for _, closeFn := range p {

Callers 1

NewUserspaceEngineFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected