Comparing version 0.0.1 to 0.0.2
12
index.js
@@ -0,1 +1,8 @@ | ||
// Copyright 2014 Technical Machine, Inc. | ||
// | ||
// Licensed under the MIT license | ||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>. | ||
// This file may not be copied, modified, or distributed | ||
// except according to those terms. | ||
function queue() { | ||
@@ -30,2 +37,7 @@ | ||
}; | ||
//Clearing queue | ||
queue.clear = function(){ | ||
queue.length = 0; | ||
queue.active = false; | ||
}; | ||
@@ -32,0 +44,0 @@ return queue; |
{ | ||
"name": "sync-queue", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Simple queue for completing tasks in series", | ||
@@ -12,5 +12,6 @@ "main": "index.js", | ||
{"name" : "Tim Cameron Ryan", "email" : "tim@technical.io" }, | ||
{"name" : "Jon McKay", "email" : "jon@technical.io" } | ||
{"name" : "Jon McKay", "email" : "jon@technical.io" }, | ||
{"name" : "Carlos Martin", "email" : "pirumpi@gmail.com"} | ||
], | ||
"license": "MIT" | ||
} |
@@ -13,3 +13,3 @@ #Sync-Queue | ||
queue.place(function one() { | ||
console.log('I'm func one); | ||
console.log("I'm func one"); | ||
@@ -23,3 +23,3 @@ setTimeout(function() { | ||
queue.place(function two() { | ||
console.log.bind(this, "I'm the last func."); | ||
console.log("I'm the last func."); | ||
queue.next(); | ||
@@ -30,2 +30,2 @@ }); | ||
## Description | ||
Use `place` to put things in the queue. They will start being executed automatically. Call `next` when you want the thing you put in the queue is finished. | ||
Use `place` to put things in the queue. They will start being executed automatically. Call `next` when you want the next thing in the queue to begin execution. |
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
4020
54
29