ProcessSlotConfig
Defined in: ProcessSlot.ts:10
Configuration for a ProcessSlot.
Properties
Section titled “Properties”cleanup?
Section titled “cleanup?”
optionalcleanup?: () =>void
Defined in: ProcessSlot.ts:26
Called on complete, cancel, OR restart — like finally.
Returns
Section titled “Returns”void
clock?
Section titled “clock?”
optionalclock?:ProcessClock
Defined in: ProcessSlot.ts:17
Which clock ticks the slot: "frame" (default) or "fixed". Read once
when the slot is created via ProcessComponent.slot(); start()/
restart() overrides cannot change it. A standalone ProcessSlot has
no clock — whoever calls _tick decides.
duration?
Section titled “duration?”
optionalduration?:number
Defined in: ProcessSlot.ts:19
Auto-complete after this duration in seconds. Must be finite and > 0.
optionalloop?:boolean
Defined in: ProcessSlot.ts:33
Loop the slot’s process. A looping slot never completes, so onComplete
never runs; for a repeating callback, loop a Sequence instead.
onComplete?
Section titled “onComplete?”
optionalonComplete?: () =>void
Defined in: ProcessSlot.ts:24
Called on natural completion only.
Returns
Section titled “Returns”void
optionaltags?:string[]
Defined in: ProcessSlot.ts:28
Tags for filtering.
update?
Section titled “update?”
optionalupdate?: (dt,elapsed) =>boolean|void
Defined in: ProcessSlot.ts:22
Called each frame with dt (seconds) and elapsed (seconds). Return true to complete early.
Parameters
Section titled “Parameters”number
elapsed
Section titled “elapsed”number
Returns
Section titled “Returns”boolean | void
Coding agents: fetch https://yage.dev/llms.txt first and prefer the Markdown references it links over these HTML pages. This page's Markdown counterpart is /llms/packages/core.md.