Skip to content

TimerController

Defined in: packages/threeplay/src/core/types.ts:17

Handle returned by wait(), loop() and tween(). Awaitable.

cancel(): void

Defined in: packages/threeplay/src/core/types.ts:13

Removes the handler for good.

void

EventController.cancel


then<TResult1, TResult2>(onfulfilled?, onrejected?): PromiseLike<TResult1 | TResult2>

Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1542

Attaches callbacks for the resolution and/or rejection of the Promise.

TResult1 = void

TResult2 = never

((value) => TResult1 | PromiseLike<TResult1>) | null

The callback to execute when the Promise is resolved.

((reason) => TResult2 | PromiseLike<TResult2>) | null

The callback to execute when the Promise is rejected.

PromiseLike<TResult1 | TResult2>

A Promise for the completion of which ever callback is executed.

PromiseLike.then

readonly finished: boolean

Defined in: packages/threeplay/src/core/types.ts:19

true once the timer has run to completion (never for an endless loop).


paused: boolean

Defined in: packages/threeplay/src/core/types.ts:11

While true the handler is skipped.

EventController.paused