async-timeout
v1.0.2
Published
async-timeout is a simple async task wrapper which triggers the callback. It supresses errors (by default), thus uses the timeout fallbacks also as an error fallback.
Downloads
17
Readme
async-timeout
async-timeout is a simple async task wrapper which triggers the callback. It supresses errors (by default), thus uses the timeout fallbacks also as an error fallback.
var timeout = require('async-timeout');
async.parallel([
timeout(function noop(){
// never call back
}, 1000, 'FALLBACK RESP IN CASE OF TIMEOUT')
], function(err, res) {
console.log(res[0]);
});