Releases: samrith-s/concurrent-tasks
Releases · samrith-s/concurrent-tasks
v0.0.10
👨🏻🎤 Change Log
- Fix bug where adding multiple tasks to
tasks.list
with existing tasks doesn't updatetasks.total
properly.
v0.0.9
👨🏻🎤 Change Log
- Fix bug with
addMultiple
overwritingtasks
object completely while updatingtasks.list
andtasks.total
. start
now iterates overtasks.list
and executes tasks until concurrency limits are fulfilled.
v0.0.8
👨🏻🎤 Change Log
- Removed resetting of
tasks.total
to0
on completion of all tasks intasks.list
v0.0.7
👨🏻🎤 Change Log
tasks.total
is set to0
if no more tasks present intasks.list
.
v0.0.6
👨🏻🎤 Change Log
- Added
setConcurrency
method to update concurrency limit while tasks running.
v0.0.5
👨🏻🎤 Change Log
- Default exported class name changed from
ConcurrentTasks
toTaskRunner
. __working
flag is set tofalse
appropriately on change of state from busy to idle.- Properly check and execute
onStart
only if it is a function and ignore otherwise.
v0.0.4
The live examples are hosted on GitHub pages.
👨🏻🎤 Change Log
- Each instance of
ConcurrentTask
has a unique name attribute. - Name attribute is customisable during
ConcurrentTask
has a staticrunnerCount
value, which maintains a count of instances.
v0.0.3
👨🏻🎤 Change Log
add
andaddMultiple
require a function or an array of functions respectively.add
andaddMultiple
throw appropriateTypeError
s if the arguments don't meet the criteria.addMultiple
now adds to the task list, rather than directly replacing it.- Proper log utility, along with a map of log statements, added for better debugging.