NewCond creates a new Cond instance with an initialized channel.
()
| 18 | |
| 19 | // NewCond creates a new Cond instance with an initialized channel. |
| 20 | func NewCond() *Cond { |
| 21 | return &Cond{ |
| 22 | ch: make(condCh), |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | // Tick signals that an event has occurred by closing the channel and incrementing cursor. |
| 27 | func (t *Cond) Tick() { |
no outgoing calls