Lines
n/a
0 / 0
Functions and Methods
n/a
0 / 0
Classes and Traits
n/a
0 / 0
| Name | Lines | Functions and Methods | CRAP | Classes and Traits | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | <?php | |
| 2 | ||
| 3 | declare(strict_types=1); | |
| 4 | ||
| 5 | namespace Stewart\Support\Time; | |
| 6 | ||
| 7 | use Amp\Cancellation; | |
| 8 | use Stewart\Contracts\Time\Duration; | |
| 9 | ||
| 10 | /** @internal */ | |
| 11 | interface Deadlines | |
| 12 | { | |
| 13 | public function timeout(Duration $limit): Cancellation; | |
| 14 | ||
| 15 | // Unlike Timers::startTimer(), the wait keeps the event loop alive. | |
| 16 | public function delay(Duration $wait, ?Cancellation $cancellation = null): void; | |
| 17 | } |