SwooleCancellable
in package
implements
Cancellable
FinalYes
Tags
Table of Contents
Interfaces
Methods
- __construct() : mixed
- cancel() : void
- isCancelled() : bool
- retarget() : void
- Point the handle at the Swoole timer that now backs the schedule.
Methods
__construct()
public
__construct(int $timerId) : mixed
Parameters
- $timerId : int
cancel()
public
cancel() : void
Attributes
- #[Override]
isCancelled()
public
isCancelled() : bool
Attributes
- #[Override]
Return values
boolretarget()
Point the handle at the Swoole timer that now backs the schedule.
public
retarget(int $timerId) : void
Repeating schedules are two Swoole timers in sequence: an initial
after timer that hands over to a tick timer. The handle must always
clear the LIVE timer, so the runtime retargets it on the handover.
Parameters
- $timerId : int