Socket
Socket
Sign inDemoInstall

fast-queue

Package Overview
Dependencies
1
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.4 to 2.0.0

2

index.d.ts
declare class Queue {
constructor();
push(func: Function): void;
doAsap(func: Function): void;
}

@@ -5,0 +5,0 @@

@@ -1,2 +0,2 @@

let setImmidiate = require("setimmediate");
require("setimmediate");

@@ -22,3 +22,3 @@ /**

*/
push(func) {
doAsap(func) {
if (typeof func !== 'function') return;

@@ -25,0 +25,0 @@ this.items.push(func);

{
"name": "fast-queue",
"version": "1.0.4",
"version": "2.0.0",
"description": "",

@@ -5,0 +5,0 @@ "typings":"./index.d.ts",

@@ -8,3 +8,3 @@ A simple async queue that yields to IO under load.

q.push(()=>{console.log('Hello')});
q.doAsap(()=>{console.log('Hello')});
```
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc