Skip to content

Process

Defined in: Process.ts:22

A Process represents an ongoing action updated each frame. Used internally by Tween and Sequence, and directly for custom coroutines.

new Process(options): Process

Defined in: Process.ts:45

ProcessOptions

Process

readonly tags: readonly string[]

Defined in: Process.ts:29

Tags for filtering/grouping.

get completed(): boolean

Defined in: Process.ts:54

Whether the process has completed.

boolean


get paused(): boolean

Defined in: Process.ts:59

Whether the process is paused.

boolean

_reset(): void

Defined in: Process.ts:123

Internal

Reset the process to its initial state so it can be re-run. Used by Sequence for loop/repeat with direct instances.

void


_update(dt): void

Defined in: Process.ts:92

Internal

Advance the process by dt milliseconds.

number

void


cancel(): void

Defined in: Process.ts:74

Cancel the process.

void


pause(): void

Defined in: Process.ts:64

Pause the process.

void


resume(): void

Defined in: Process.ts:69

Resume the process.

void


toPromise(): Promise<void>

Defined in: Process.ts:81

Returns a promise that resolves when the process completes or is cancelled.

Promise<void>


static delay(duration, onComplete?, tags?): Process

Defined in: Process.ts:38

Create a timer that fires onComplete after duration ms.

number

() => void

string[]

Process