Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

futurus

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

futurus - npm Package Compare versions

Comparing version 0.0.2 to 0.1.0

.travis.yml

11

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc