MCPcopy
hub / github.com/rs/zerolog / Waiter

Struct Waiter

diode/internal/diodes/waiter.go:10–15  ·  view source on GitHub ↗

Waiter will use a conditional mutex to alert the reader to when data is available.

Source from the content-addressed store, hash-verified

8// Waiter will use a conditional mutex to alert the reader to when data is
9// available.
10type Waiter struct {
11 Diode
12 mu sync.Mutex
13 c *sync.Cond
14 ctx context.Context
15}
16
17// WaiterConfigOption can be used to setup the waiter.
18type WaiterConfigOption func(*Waiter)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected