Skip to content

Commit 19e4c8f

Browse files
Merge pull request #21 from kelunik/time-units
Change time units to integer and milliseconds
2 parents d781ac9 + 8baea83 commit 19e4c8f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/EventLoopDriver.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,17 @@ public function defer(callable $callback);
3131
* Delay the execution of a callback. The time delay is approximate and accuracy is not guaranteed.
3232
*
3333
* @param callable $callback The callback to delay.
34-
* @param float $time The amount of time, in seconds, to delay the execution for.
34+
* @param int $delay The amount of time, in milliseconds, to delay the execution for.
3535
*
3636
* @return string An identifier that can be used to cancel, enable or disable the event.
3737
*/
38-
public function delay(callable $callback, $time);
38+
public function delay(callable $callback, $delay);
3939

4040
/**
4141
* Repeatedly execute a callback. The interval between executions is approximate and accuracy is not guaranteed.
4242
*
4343
* @param callable $callback The callback to repeat.
44-
* @param float $interval The time interval, in seconds, to wait between executions.
44+
* @param int $interval The time interval, in milliseconds, to wait between executions.
4545
*
4646
* @return string An identifier that can be used to cancel, enable or disable the event.
4747
*/

0 commit comments

Comments
 (0)