Lines Matching refs:timer
14 const timer = fastTimers[idx]
16 if (timer.state === 0) {
17 timer.state = fastNow + timer.delay
18 } else if (timer.state > 0 && fastNow >= timer.state) {
19 timer.state = -1
20 timer.callback(timer.opaque)
23 if (timer.state === -1) {
24 timer.state = -2
59 // -2 not in timer list
60 // -1 in timer list but inactive
61 // 0 in timer list waiting for time
62 // > 0 in timer list waiting for time to expire