Skip to content

No9/queuer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

queuer

A simple function queuing library taken from this stackoverflow question

install

$ npm install queuer

usage

var assert = require('assert')
var Queuer = require('queuer')

var qr = new Queuer()

var expected = [1, 2, 3]
var found = []

qr.add(function () {
  found.push(1)
})

qr.add(function () {
  found.push(2)
})

qr.add(function () {
  found.push(3)
})

qr.add(function () {
  assert.deepEqual(expected, found)
  console.log('Queuer Validated')
})

test

$ npm test

Runs node test/test-queuer

About

A simple function queuing library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published