ProcessSlotConfig
Defined in: ProcessSlot.ts:2
Configuration for a ProcessSlot.
Properties
Section titled “Properties”cleanup?
Section titled “cleanup?”
optionalcleanup?: () =>void
Defined in: ProcessSlot.ts:11
Called on complete, cancel, OR restart — like finally.
Returns
Section titled “Returns”void
duration?
Section titled “duration?”
optionalduration?:number
Defined in: ProcessSlot.ts:4
Auto-complete after this duration in ms.
optionalloop?:boolean
Defined in: ProcessSlot.ts:15
Loop the slot’s process.
onComplete?
Section titled “onComplete?”
optionalonComplete?: () =>void
Defined in: ProcessSlot.ts:9
Called on natural completion only.
Returns
Section titled “Returns”void
optionaltags?:string[]
Defined in: ProcessSlot.ts:13
Tags for filtering.
update?
Section titled “update?”
optionalupdate?: (dt,elapsed) =>boolean|void
Defined in: ProcessSlot.ts:7
Called each frame with dt (ms) and elapsed (ms). Return true to complete early.
Parameters
Section titled “Parameters”number
elapsed
Section titled “elapsed”number
Returns
Section titled “Returns”boolean | void