FiberScheduler
in package
FinalYes
Tags
Table of Contents
Methods
- advanceTimers() : void
- hasPendingTimers() : bool
- scheduleOnce() : Cancellable
- scheduleRepeatedly() : Cancellable
Methods
advanceTimers()
public
advanceTimers(DateTimeImmutable $now) : void
Parameters
- $now : DateTimeImmutable
hasPendingTimers()
public
hasPendingTimers() : bool
Return values
boolscheduleOnce()
public
scheduleOnce(Duration $delay, callable(): void $callback, DateTimeImmutable $now) : Cancellable
Parameters
- $delay : Duration
- $callback : callable(): void
- $now : DateTimeImmutable
Return values
CancellablescheduleRepeatedly()
public
scheduleRepeatedly(Duration $initialDelay, Duration $interval, callable(): void $callback, DateTimeImmutable $now) : Cancellable