Skip to content

Interface: LatestQueue<Req> ​

Experimental

See the module docs.

Type Parameters ​

Type Parameter
Req

Properties ​

PropertyModifierTypeDescription
busyreadonlybooleanExperimental Whether a request is running.

Methods ​

cancel() ​

ts
cancel(): void;

Experimental

Drop the waiting request and ignore the result of the running one (e.g. pointer left).

Returns ​

void


dispose() ​

ts
dispose(): void;

Experimental

Stop for good: nothing is delivered after this.

Returns ​

void


push() ​

ts
push(request): void;

Experimental

Ask for request; replaces any request still waiting to start.

Parameters ​

ParameterType
requestReq

Returns ​

void

Released under the MIT License.