TimerController
Defined in: packages/threeplay/src/core/types.ts:17
Handle returned by wait(), loop() and tween(). Awaitable.
Extends
Section titled “Extends”EventControllerPromiseLike<void>
Methods
Section titled “Methods”cancel()
Section titled “cancel()”cancel():
void
Defined in: packages/threeplay/src/core/types.ts:13
Removes the handler for good.
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”then()
Section titled “then()”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.
Type Parameters
Section titled “Type Parameters”TResult1
Section titled “TResult1”TResult1 = void
TResult2
Section titled “TResult2”TResult2 = never
Parameters
Section titled “Parameters”onfulfilled?
Section titled “onfulfilled?”((value) => TResult1 | PromiseLike<TResult1>) | null
The callback to execute when the Promise is resolved.
onrejected?
Section titled “onrejected?”((reason) => TResult2 | PromiseLike<TResult2>) | null
The callback to execute when the Promise is rejected.
Returns
Section titled “Returns”PromiseLike<TResult1 | TResult2>
A Promise for the completion of which ever callback is executed.
Inherited from
Section titled “Inherited from”PromiseLike.then
Properties
Section titled “Properties”finished
Section titled “finished”
readonlyfinished:boolean
Defined in: packages/threeplay/src/core/types.ts:19
true once the timer has run to completion (never for an endless loop).
paused
Section titled “paused”paused:
boolean
Defined in: packages/threeplay/src/core/types.ts:11
While true the handler is skipped.