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

Method Cursor

asyncbuffer/cond.go:40–42  ·  view source on GitHub ↗

Cursor returns the current cursor value. Capture this before checking your condition, then pass it to Wait().

()

Source from the content-addressed store, hash-verified

38// Cursor returns the current cursor value.
39// Capture this before checking your condition, then pass it to Wait().
40func (t *Cond) Cursor() uint64 {
41 return t.cursor.Load()
42}
43
44// Wait waits for a Tick() to occur after the given cursor value.
45// Returns the new cursor value when awakened.

Callers 6

TestBasicWaitAndTickMethod · 0.80
TestCloseMethod · 0.80
WaitForMethod · 0.80
WaitMethod · 0.80

Calls 1

LoadMethod · 0.80

Tested by 4

TestBasicWaitAndTickMethod · 0.64
TestCloseMethod · 0.64