Skip to content

Commit 4195b46

Browse files
Changed time delays from int to float
1 parent 89332e5 commit 4195b46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/EventLoop.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public static function defer(callable $callback)
7272
* Delay the execution of a callback. The time delay is approximate and accuracy is not guaranteed.
7373
*
7474
* @param callable $callback The callback to delay.
75-
* @param float $time The amount of time, in seconds, to delay the execution for.
75+
* @param int $time The amount of time, in milliseconds, to delay the execution for.
7676
*
7777
* @return string An identifier that can be used to cancel, enable or disable the event.
7878
*/
@@ -85,7 +85,7 @@ public static function delay(callable $callback, $time)
8585
* Repeatedly execute a callback. The interval between executions is approximate and accuracy is not guaranteed.
8686
*
8787
* @param callable $callback The callback to repeat.
88-
* @param float $interval The time interval, in seconds, to wait between executions.
88+
* @param int $interval The time interval, in milliseconds, to wait between executions.
8989
*
9090
* @return string An identifier that can be used to cancel, enable or disable the event.
9191
*/

0 commit comments

Comments
 (0)