1.0.4 • Published 10 months ago

@taoro/scheduler v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Scheduler System

Simple scheduling system using generator functions and iterators as tasks.

const scheduler = new Scheduler()

function * Task() {
  // This task will run forever without blocking
  // the main thread.
  while (true) {
    yield
  }
}

scheduler.add(Task())

// Run all tasks every 1 second.
setInterval(() => scheduler.update(), 1000)
1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.0

10 months ago