Nexus API Reference

SwooleCancellable
in package
implements Cancellable

FinalYes
Tags
psalm-api

Table of Contents

Interfaces

Cancellable

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

isCancelled()

public isCancelled() : bool
Attributes
#[Override]
Return values
bool

retarget()

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
On this page

Search results