MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / Release

Method Release

asyncbuffer/latch.go:19–21  ·  view source on GitHub ↗

Release releases the latch, allowing all waiting goroutines to proceed.

()

Source from the content-addressed store, hash-verified

17
18// Release releases the latch, allowing all waiting goroutines to proceed.
19func (g *Latch) Release() {
20 g.once.Do(func() { close(g.done) })
21}
22
23// Wait blocks until the latch is released.
24func (g *Latch) Wait() {

Callers 12

TestLatchReleaseFunction · 0.95
TestLatchWaitFunction · 0.95
TestLatchMultipleWaitersFunction · 0.95
NewReadFullFunction · 0.80
WaitForMethod · 0.80
WaitMethod · 0.80
ReleaseThresholdMethod · 0.80
CloseMethod · 0.80
ReadAtMethod · 0.80
AcquireMethod · 0.80
acquireQueueMethod · 0.80

Calls

no outgoing calls

Tested by 4

TestLatchReleaseFunction · 0.76
TestLatchWaitFunction · 0.76
TestLatchMultipleWaitersFunction · 0.76