Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DefaultScheduler

Default scheduler for the process system. Schedules process execution using setTimeout. The most generic scheduler and maybe not good for anything with dom manipulation.

Hierarchy

Index

Constructors

constructor

  • new DefaultScheduler(throttle?: number, reductions_per_process?: number): DefaultScheduler

Properties

invokeLater

invokeLater: function

Type declaration

    • (callback: function): void
    • Parameters

      • callback: function
          • (): void
          • Returns void

      Returns void

isRunning

isRunning: boolean

queues

queues: Map<PID, ProcessQueue>

reductions_per_process

reductions_per_process: number

Methods

_run

  • _run(run: Function): void

addToQueue

  • addToQueue(pid: PID, task: function): void

addToScheduler

  • addToScheduler(pid: PID, task: function, dueTime?: number): void

removePid

  • removePid(pid: PID): void

run

  • run(): void

schedule

  • schedule(pid: PID, task: function): void

scheduleFuture

  • scheduleFuture(pid: PID, dueTime: number, task: function): void

Generated using TypeDoc