Interface FgPendingTask
interface FgPendingTask {
blockId: string;
canceled: boolean;
done: boolean;
state: Record<string, unknown>;
token: number;
}
blockId: string;
canceled: boolean;
done: boolean;
state: Record<string, unknown>;
token: number;
}
Properties
Readonlyblock Id
blockId: string
canceled
canceled: boolean
done
done: boolean
Set by a def's onTick when the task has finished; compacted out after
the frame's pending loop.
state
state: Record<string, unknown>
Task-local state (e.g. remainingMs, delayIndex, animation handle).
Readonlytoken
token: number
Unique per task; a block may own several concurrently.
One outstanding async task (a delay, an animation). The unique
tokenenables precise cancellation and lets a block own several tasks at once.