kasync

0.0.2 • Public • Published

kasync for mongoose queries

##Installation

$ npm install kasync

##Quick Start

var T = require("kasync");
var res = "";

setTimeout(T.wait("timeout", function(){
    res += "3000ms";
}),3000);

setTimeout(T.wait("timeout", function(){
    res += "3000ms";
}),3000);

T.done("timeout", function(){
    res += "done";
    console.log(res);// 3000ms3000msdone
});
var T = require("kasync");
var res = "";

setTimeout(T.wait("timeout", function(){
    res += "4000ms";
}),4000);

setTimeout(T.wait("timeout", function(){
    res += "3000ms";
}),3000);

T.done("timeout", function(){
    res += "done";
    console.log(res);// 4000ms3000msdone
});

Readme

Keywords

none

Package Sidebar

Install

npm i kasync

Weekly Downloads

0

Version

0.0.2

License

none

Last publish

Collaborators

  • imappbox