Waiter will use a conditional mutex to alert the reader to when data is available.
| 8 | // Waiter will use a conditional mutex to alert the reader to when data is |
| 9 | // available. |
| 10 | type 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. |
| 18 | type WaiterConfigOption func(*Waiter) |
nothing calls this directly
no outgoing calls
no test coverage detected