Queueing asyncronous functions, and calls them syncronous
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
README
asyncqueue.js

README

Async Queue

Queueing asyncronous functions, and call them syncronous.

Usage:
var clazz = new Clazz();

var queue = new AsyncQueue({name : 'test'});

queue.push({
  fn : clazz.asyncLoad1,
  args : [100, 200],
  scope : clazz,
  callback : clazz.handleLoad1
}

queue.push({
  fn : clazz.asyncLoad2,
  args : [300],
  scope : clazz,
  callback : clazz.handleLoad2
});

queue.push({
  fn : function(){console.info('END')},
  delay : 1000
});


See more info, test/test.js