Skip to content

Commit 265273e

Browse files
committed
[EventLoop] Rename nextEventTime to nextEventTimeInMicroSeconds
1 parent 7c58554 commit 265273e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

StreamSelectLoop.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function cancelTimer($signature)
8181
$this->timers->cancel($signature);
8282
}
8383

84-
protected function getNextEventTime()
84+
protected function getNextEventTimeInMicroSeconds()
8585
{
8686
$nextEvent = $this->timers->getFirst();
8787

@@ -105,7 +105,7 @@ protected function sleepOnPendingTimers()
105105
// We use usleep() instead of stream_select() to emulate timeouts
106106
// since the latter fails when there are no streams registered for
107107
// read / write events. Blame PHP for us needing this hack.
108-
usleep($this->getNextEventTime());
108+
usleep($this->getNextEventTimeInMicroSeconds());
109109
}
110110
}
111111

@@ -120,7 +120,7 @@ protected function runStreamSelect()
120120
return;
121121
}
122122

123-
if (stream_select($read, $write, $except, 0, $this->getNextEventTime()) > 0) {
123+
if (stream_select($read, $write, $except, 0, $this->getNextEventTimeInMicroSeconds()) > 0) {
124124
if ($read) {
125125
foreach ($read as $stream) {
126126
$listener = $this->readListeners[(int) $stream];

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy