How to use the asynckit.serial function in asynckit

To help you get started, we’ve selected a few asynckit examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github alexindigo / fbbot / test / common.js View on Github external
function iterateSendings(iterator)
{
  asynckit.serial(common.sendings, function(item, type, callback)
  {
    // each item is an array by itself
    asynckit.serial(item, function(test, id, cb)
    {
      // differentiate elements within same type
      iterator(test, type + '-' + id, cb);
    }, callback);

  }, function noop(err){ assert.ifError(err, 'expects all sendings to finish without errors'); });
}
github alexindigo / fbbot / test / common.js View on Github external
asynckit.serial(common.sendings, function(item, type, callback)
  {
    // each item is an array by itself
    asynckit.serial(item, function(test, id, cb)
    {
      // differentiate elements within same type
      iterator(test, type + '-' + id, cb);
    }, callback);

  }, function noop(err){ assert.ifError(err, 'expects all sendings to finish without errors'); });
}
github alexindigo / fbbot / test / common.js View on Github external
function iterateRequests(iterator)
{
  asynckit.serial(common.requests, iterator, function noop(err){ assert.ifError(err, 'expects all requests to finish without errors'); });
}

asynckit

Minimal async jobs utility library, with streams support

MIT
Latest version published 8 years ago

Package Health Score

65 / 100
Full package analysis

Popular asynckit functions