How to use the now-and-later.mapSeries function in now-and-later

To help you get started, we’ve selected a few now-and-later 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 gulpjs / bach / lib / settleSeries.js View on Github external
function settleSeries(done) {
    var onSettled = helpers.onSettled(done);
    nowAndLater.mapSeries(args, iterator, extensions, onSettled);
  }
github gulpjs / bach / lib / series.js View on Github external
function series(done) {
    nowAndLater.mapSeries(args, iterator, extensions, done);
  }
github gulpjs / vinyl-sourcemap / lib / helpers.js View on Github external
function addSourceMaps(file, state, callback) {
  var tasks = [
    loadSourceMap,
    fixImportedSourceMap,
    mapsLoaded,
  ];

  function apply(fn, key, cb) {
    fn(file, state, cb);
  }

  nal.mapSeries(tasks, apply, done);

  function done() {
    callback(null, file);
  }
}

now-and-later

Map over an array or object of values in parallel or series, passing each through the async iterator, with optional lifecycle hooks.

MIT
Latest version published 2 years ago

Package Health Score

68 / 100
Full package analysis

Popular now-and-later functions