From 8baea83f300a50441fd16f101ffa57e2d77ea174 Mon Sep 17 00:00:00 2001 From: Niklas Keller Date: Thu, 12 May 2016 12:28:46 +0200 Subject: [PATCH] Change time units to integer and milliseconds --- src/EventLoopDriver.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/EventLoopDriver.php b/src/EventLoopDriver.php index c1fdf54..787a26a 100644 --- a/src/EventLoopDriver.php +++ b/src/EventLoopDriver.php @@ -31,17 +31,17 @@ interface EventLoopDriver * Delay the execution of a callback. The time delay is approximate and accuracy is not guaranteed. * * @param callable $callback The callback to delay. - * @param float $time The amount of time, in seconds, to delay the execution for. + * @param int $delay The amount of time, in milliseconds, to delay the execution for. * * @return string An identifier that can be used to cancel, enable or disable the event. */ - public function delay(callable $callback, $time); + public function delay(callable $callback, $delay); /** * Repeatedly execute a callback. The interval between executions is approximate and accuracy is not guaranteed. * * @param callable $callback The callback to repeat. - * @param float $interval The time interval, in seconds, to wait between executions. + * @param int $interval The time interval, in milliseconds, to wait between executions. * * @return string An identifier that can be used to cancel, enable or disable the event. */