UNPKG

@most/scheduler

Version:

Reactive programming with lean, functions-only, curried, tree-shakeable API

17 lines (16 loc) 589 B
/** @license MIT License (c) copyright 2010-2017 original author or authors */ import { Time, Timeline } from '@most/types'; import ScheduledTaskImpl from './ScheduledTask'; export default class TimelineImpl implements Timeline { private tasks; constructor(); nextArrival(): number; isEmpty(): boolean; add(st: ScheduledTaskImpl): void; remove(st: ScheduledTaskImpl): boolean; /** * @deprecated */ removeAll(f: (task: ScheduledTaskImpl) => boolean): void; runTasks(t: Time, runTask: (task: ScheduledTaskImpl) => void): void; }