import TaskRunner from 'concurrent-tasks'
const runner = new TaskRunner();
const myTask = done => {
setTimeout(() => {
done();
}, 1000);
};
runner.add(myTask);
Concurrent Tasks
A simple task runner which will run tasks concurrently while maintaining limits.
Click the button to start the task runner! You can keep adding tasks while the TaskRunner is running.
Click the button to add tasks and the button to start them. You can keep adding tasks while the TaskRunner is running.