Releases: samrith-s/concurrent-tasks
Releases · samrith-s/concurrent-tasks
v1.0.0
🙌🏼 v1.0.0 Major Release!
Leading up to this release, Concurrent Tasks has undergone quite a bit of changes. The aim has still been the same: to provide a super lightweight, independent and simplistic package which will help in solving at least some of your problems.
The complete documentation for Concurrent Tasks is on the website. Thanks a lot to js.org and @indus for providing the free subdomain. Shoutout to Gitbook (@GitBookIO), for the awesome editor which made writing the documentation for Concurrent Tasks a breeze!
👨🏻🎤 Change Log
- Added more detailed checks and warnings on
setConcurrency
. - Added new methods:
addFirst
: Add to the beginning of the task list.addMultipleFirst
: Add multiple to the beginning of the task list.removeFirst
: Remove the first item in the task list.removeAt
: Remove at a particular index of the task list.isBusy
: Retrieve the idle state of the instance.
add
,addMultiple
andremove
now accept a parameter to add/remove to/from the beginning of the list.- Added
onAdd
callback configuration attribute. - Fixed a bug where
tasks.total
was not updated appropriately upon removal.
v0.0.11
👨🏻🎤 Change Log
- Tasks will be executed to fill remaining slots on
setConcurrency
andstart
. - Total count now adds to the existing
tasks.total
.
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.