Lines Matching refs:cb
23 * @param callable $cb
27 function setTimeout(callable $cb, $timeout) { argument
33 $this->timers[] = [$triggerTime, $cb];
48 [[$triggerTime, $cb]]
52 array_unshift($this->timers, [$triggerTime, $cb]);
67 * @param callable $cb
71 function setInterval(callable $cb, $timeout) { argument
76 $f = function() use ($cb, &$f, $timeout, &$keepGoing) {
78 $cb();
109 * @param callable $cb
112 function nextTick(callable $cb) { argument
114 $this->nextTick[] = $cb;
129 * @param callable $cb
132 function addReadStream($stream, callable $cb) { argument
135 $this->readCallbacks[(int)$stream] = $cb;
149 * @param callable $cb
152 function addWriteStream($stream, callable $cb) { argument
155 $this->writeCallbacks[(int)$stream] = $cb;
273 foreach ($nextTick as $cb) {
274 $cb();