Skip to content

A most/core Scheduler for dynamically flowing time.

Notifications You must be signed in to change notification settings

micahscopes/pulsing-scheduler

 
 

Repository files navigation

most-pulsing-scheduler

This package is a fork of @TylorS's excellent most-virtual-scheduler, with music and multimedia applications in mind.

This package provides Clock and Timer implementations that allow time to manually "pulsed" to progress through @most/cores Scheduler events dynamically and precisely.

Install

# NPM
npm i --save most-pulsing-scheduler

# Yarn
yarn add most-pulsing-scheduler

Usage

import { createPulsingScheduler } from 'most-pulsing-scheduler'

// Construct our PulsingTimer-Scheduler pair
const [timer, scheduler] = createPulsingScheduler()

// Construct a stream
const stream = ...

// Run your stream
runEffects(stream, scheduler)

// Manually "pulse" time by 100 units
// All tasks scheduled to be run between 0 and 100 will be run
// in the order they were scheduled.
timer.pulse(100)

About

A most/core Scheduler for dynamically flowing time.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 76.5%
  • JavaScript 23.5%