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

Method add

wgengine/userspace.go:1607–1607  ·  view source on GitHub ↗
(c io.Closer)

Source from the content-addressed store, hash-verified

1605type closeOnErrorPool []func()
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 {

Callers 1

NewUserspaceEngineFunction · 0.95

Calls 1

CloseMethod · 0.65

Tested by

no test coverage detected