Skip to content

incredibly simple setTimeout wrapper for async.js tasks (which also supresses errors)

Notifications You must be signed in to change notification settings

ifroz/async-timeout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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]);
    });

About

incredibly simple setTimeout wrapper for async.js tasks (which also supresses errors)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published