Nexus API Reference

DeferredCancellable
in package
implements Cancellable

FinalYes

Cancellable for timers scheduled before Co\run() starts.

Holds a reference to a boolean flag shared with the pending timer closure. When cancel() is called, the flag is set to true, preventing the timer from being created when run() executes pending actions.

Table of Contents

Interfaces

Cancellable

Methods

__construct()  : mixed
cancel()  : void
isCancelled()  : bool

Methods

__construct()

public __construct(bool &$cancelled) : mixed
Parameters
$cancelled : bool

Shared reference to the cancelled flag


        
On this page

Search results