src/util/async.js
function async(fn) {
  return function asynced(done) {
    var err, ret;
    try {
      ret = fn();
    } catch (e) {
      err = e;
    } finally {
      if (err) {
        done(err);
      } else {
        done(null, ret);
      }
    }
  };
}
function async(fn) {
  return function asynced(done) {
    var err, ret;
    try {
      ret = fn();
    } catch (e) {
      err = e;
    } finally {
      if (err) {
        done(err);
      } else {
        done(null, ret);
      }
    }
  };
}
function async ( fn ) { return function asynced ( done ) { var err , ret ; try { ret = fn ( ) ; } catch ( e ) { err = e ; } finally { if ( err ) { done ( err ) ; } else { done ( null , ret ) ; } } } ; }
Transform a synchronous function into an asynchronous one.
Transform a synchronous function into an asynchronous one .