Skip to content

NTICompass/tinyq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

tinyq

Informtion

tinyq is a JavaScript function queue. It supports passing arguments into the functions in the queue before they are run.

Basic Instructions

Create a queue object.

var Q = new q;

Add functions to it.

Q.add(function(next, varA, varB){
   console.log(varA);
   next(varB);
});

Q.add(function(next, varA){
   console.log(varA);
});

Get its length.

alert(Q.length);

Start the queue.

Q.run('a', 'b');

About

A (tiny) JavaScript Function Queue

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published