Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/axil/node-asleep


https://github.com/axil/node-asleep

Last synced: 18 days ago
JSON representation

Awesome Lists containing this project

README

        

asleep
======

Asynchronous sleep() for Node.js.

Wait for n seconds asyncronously using `process.nextTick()`. Primarily indended for debugging.

Example
-------

var asleep = require('asleep');

asleep(3, function(){
console.log('done1');
});

asleep(3, function(){
console.log('done2');
}); // in 3 seconds two messages will appear at once