MCPcopy
hub / github.com/gotify/server / mayExecute

Method mayExecute

api/stream/once.go:28–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26}
27
28func (o *once) mayExecute() bool {
29 o.m.Lock()
30 defer o.m.Unlock()
31 if o.done == 0 {
32 atomic.StoreUint32(&o.done, 1)
33 return true
34 }
35 return false
36}

Callers 2

Test_ExecuteFunction · 0.95
DoMethod · 0.95

Calls

no outgoing calls

Tested by 1

Test_ExecuteFunction · 0.76