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. */