Comparing version 1.0.4 to 2.0.0
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')}); | ||
``` |
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
1595