Skip to content

ProcessSlotConfig

Defined in: ProcessSlot.ts:2

Configuration for a ProcessSlot.

optional cleanup?: () => void

Defined in: ProcessSlot.ts:11

Called on complete, cancel, OR restart — like finally.

void


optional duration?: number

Defined in: ProcessSlot.ts:4

Auto-complete after this duration in ms.


optional loop?: boolean

Defined in: ProcessSlot.ts:15

Loop the slot’s process.


optional onComplete?: () => void

Defined in: ProcessSlot.ts:9

Called on natural completion only.

void


optional tags?: string[]

Defined in: ProcessSlot.ts:13

Tags for filtering.


optional update?: (dt, elapsed) => boolean | void

Defined in: ProcessSlot.ts:7

Called each frame with dt (ms) and elapsed (ms). Return true to complete early.

number

number

boolean | void