Skip to content
generated from Deuscx/starter-ts

a simple way to execute task with requestIdleCallback

License

Notifications You must be signed in to change notification settings

Deuscx/idle-scheduler

Repository files navigation

idle-scheduler


idle-scheduler

A simple way to run complex tasks in a queue. use `requestIdleCallback`

Contributors Forks Stargazers Issues GitHub

Getting Started

Installation

pnpm install idle-scheduler

Usage

const queue = new IdleQueue()

tasks.forEach((task) => {
  queue.add(task)
})

queue.run()

See the open issues for a full list of proposed features (and known issues).

you can see the playground example

firefox_vyJ5j3JRtc.mp4

License

Distributed under the MIT License. See LICENSE for more information.