We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81619b9 commit 24524b2Copy full SHA for 24524b2
1 file changed
src/Coroutine/Sleep.php
@@ -22,9 +22,9 @@ class Sleep extends Base
22
*/
23
public function goSleep(int $mSec)
24
{
25
- $this->timeout = $mSec + 1000; //协程超时时间要比睡眠时间更长
26
$this->__sleepTime = $mSec;
27
$this->requestId = $this->getContext()->getLogId();
+ $this->setTimeout($mSec + 1000); //协程超时时间要比睡眠时间更长
28
29
getInstance()->scheduler->IOCallBack[$this->requestId][] = $this;
30
$keys = array_keys(getInstance()->scheduler->IOCallBack[$this->requestId]);
0 commit comments