Properties
Private tasks
tasks
: Map<number, Arity1<number>[]> = new Map()
Methods
addTask
- addTask(time: number, f: Arity1<number>): void
Private getAndDelete
- getAndDelete(time: number): ((value: A) => B)[]
-
Parameters
Returns ((value: A) => B)[]
readyTasks
- readyTasks(currentTime: number): ((value: A) => B)[]
-
Parameters
Returns ((value: A) => B)[]
removeTask
- removeTask(time: number, f: Arity1<number>): void
Timeline is responsible for storing tasks at a given time and returns what tasks are ready at the current time.