Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Timeline

Timeline is responsible for storing tasks at a given time and returns what tasks are ready at the current time.

Hierarchy

  • Timeline

Index

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)[]

readyTasks

  • readyTasks(currentTime: number): ((value: A) => B)[]

removeTask

  • removeTask(time: number, f: Arity1<number>): void

Generated using TypeDoc