pnpm install idle-scheduler
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
Distributed under the MIT License. See LICENSE
for more information.