Comparing version 0.0.2 to 0.1.0
{ | ||
"name": "futurus", | ||
"version": "0.0.2", | ||
"version": "0.1.0", | ||
"homepage": "https://github.com/evansolomon/futurus", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/evansolomon/futurus.git" | ||
}, | ||
"description": "A queue that lets you see into the future", | ||
@@ -13,8 +18,6 @@ "main": "index.js", | ||
"license": "MIT", | ||
"dependencies": { | ||
"typescript": "^1.0.1" | ||
}, | ||
"devDependencies": { | ||
"typescript": "^1.0.1", | ||
"nodeunit": "^0.9.0" | ||
} | ||
} |
# Futurus | ||
[![Build Status](https://secure.travis-ci.org/evansolomon/futurus.svg?branch=master)](http://travis-ci.org/evansolomon/futurus) | ||
> About to be | ||
A queue that exposes a lot of state about how its handling your tasks. | ||
A queue that exposes a lot of state about how its handling your tasks. In particular, futurus can tell you whether a task you're about to add will be processed immediately or buffered. | ||
Usually you shouldn't care about this sort of thing, but this one time I did and so futurus was born. | ||
## Example | ||
```js | ||
@@ -8,0 +14,0 @@ var worker = function (data, callback) { |
@@ -30,3 +30,3 @@ ///<reference path="../declarations/node.d.ts"/> | ||
isReady() : boolean{ | ||
isReady() : boolean { | ||
return (this.running() + this.length()) < this.concurrency | ||
@@ -55,3 +55,3 @@ } | ||
try { | ||
this.worker(job.data, (err) => { | ||
this.worker(job.data, (err?:Error) => { | ||
this.nextJob(job, err) | ||
@@ -58,0 +58,0 @@ }) |
Sorry, the diff of this file is not supported yet
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
65780
0
10
1442
1
45
0
2
- Removedtypescript@^1.0.1
- Removedtypescript@1.8.10(transitive)