icon Concurrent Tasks

A simple task runner which will run tasks concurrently while maintaining limits.

Simple task runner source:
                    
                        import TaskRunner from 'concurrent-tasks'

                        const runner = new TaskRunner();
                        const myTask = done => {
                            setTimeout(() => {
                                done();
                            }, 1000);
                        };

                        runner.add(myTask);
                    
                
Basic task runner
Click the button to start the task runner! You can keep adding tasks while the TaskRunner is running.
Basic task runner with programmatic start
Click the button to add tasks and the button to start them. You can keep adding tasks while the TaskRunner is running.