Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/axil/node-asleep
https://github.com/axil/node-asleep
Last synced: 18 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/axil/node-asleep
- Owner: axil
- Created: 2012-07-05T09:02:59.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-07-05T10:03:03.000Z (over 12 years ago)
- Last Synced: 2024-04-16T18:07:43.317Z (8 months ago)
- Size: 89.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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