Skip to content

Latest commit

 

History

History
71 lines (51 loc) · 2.07 KB

README.md

File metadata and controls

71 lines (51 loc) · 2.07 KB

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.