File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55interface LoopInterface
66{
7- function addReadStream ($ stream , $ listener );
8- function addWriteStream ($ stream , $ listener );
7+ public function addReadStream ($ stream , $ listener );
8+ public function addWriteStream ($ stream , $ listener );
99
10- function removeReadStream ($ stream );
11- function removeWriteStream ($ stream );
12- function removeStream ($ stream );
10+ public function removeReadStream ($ stream );
11+ public function removeWriteStream ($ stream );
12+ public function removeStream ($ stream );
1313
14- function addTimer ($ interval , $ callback );
15- function addPeriodicTimer ($ interval , $ callback );
16- function cancelTimer ($ signature );
14+ public function addTimer ($ interval , $ callback );
15+ public function addPeriodicTimer ($ interval , $ callback );
16+ public function cancelTimer ($ signature );
1717
18- function tick ();
19- function run ();
20- function stop ();
18+ public function tick ();
19+ public function run ();
20+ public function stop ();
2121}
Original file line number Diff line number Diff line change @@ -117,6 +117,7 @@ protected function runStreamSelect()
117117
118118 if (!$ read && !$ write ) {
119119 $ this ->sleepOnPendingTimers ();
120+
120121 return ;
121122 }
122123
You can’t perform that action at this time.
0 commit comments