From 3542a37cf3be3899477b2f158401320caa649313 Mon Sep 17 00:00:00 2001 From: klimick Date: Fri, 19 Dec 2025 11:28:00 +0300 Subject: [PATCH] more precise timeout --- src/Internal/TimeoutWatcher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Internal/TimeoutWatcher.php b/src/Internal/TimeoutWatcher.php index a55332d..c9a8c87 100644 --- a/src/Internal/TimeoutWatcher.php +++ b/src/Internal/TimeoutWatcher.php @@ -31,7 +31,7 @@ public function reschedule(): void public function watch(): void { - $this->callbackId = EventLoop::repeat($this->interval->toSeconds(), function (): void { + $this->callbackId = EventLoop::repeat($this->interval->toSeconds(precision: 4), function (): void { $this->queue->pushAsync(null)->ignore(); }); }