0.0.10 • Published 10 years ago

flatstack v0.0.10

Weekly downloads
4
License
BSD
Repository
github
Last release
10 years ago
var flatstach = require("flatstack");
var queue = flatstack();


queue.push(function() {
  setTimeout(queue.pause().resume, 0);
});

//if argument[0] is present, then it's async
queue.push(function(next) {
   setTimeout(next, 0);
});

//called immediately
queue.push(function() {
  
  //but look, you can inject functions before the next one is called!
  queue.unshift(function() {
    queue.pause.resume(); //calls async timeout
  });
});
0.0.10

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

11 years ago

0.0.1

11 years ago

0.0.6

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.01

11 years ago