batch-queue
Advanced tools
Comparing version 0.0.0 to 0.0.1
@@ -63,2 +63,4 @@ module.exports = Batch | ||
} | ||
return !!this.jobs.length | ||
} |
{ | ||
"name": "batch-queue", | ||
"version": "0.0.0", | ||
"version": "0.0.1", | ||
"description": "queue actions to be run in batches", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -41,2 +41,5 @@ batch-queue | ||
### batch.add(fn) -> fn | ||
works like a debaunce. batch.add will return a new function, when this function is called it will queue the original function to be called with the passed arguments and context. calling this function multiple times will result in the function only running once when the batch executes with the last set of arguments passed. | ||
works like a debaunce. batch.add will return a new function, when this function is called it will queue the original function to be called with the passed arguments and context. calling this function multiple times will result in the function only running once when the batch executes with the last set of arguments passed. | ||
### batch.run() -> boolean | ||
runs any queued jobs, returns `true` if any jobs were run, otherwise returns `false` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5617
94
45