Skip to content

Interface: Scheduler ​

Defined in: core/types.ts:160

The clock and the frame requests of a wand.

Extended by ​

Methods ​

cancel() ​

ts
cancel(handle): void;

Defined in: core/types.ts:166

Cancels a request.

Parameters ​

ParameterType
handlenumber

Returns ​

void


now() ​

ts
now(): number;

Defined in: core/types.ts:162

Gives the current time in milliseconds.

Returns ​

number


request() ​

ts
request(callback): number;

Defined in: core/types.ts:164

Requests a call for the next frame. Returns a handle.

Parameters ​

ParameterType
callback(now) => void

Returns ​

number