How to use the bach.settleSeries function in bach

To help you get started, we’ve selected a few bach 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 cloudflare / cloudflare-gcp / cli / cmds / setEnv.js View on Github external
}
    ]
    setTimeout(function () {
      try {
        vinyl.src(`templates/*.yml`)
          .pipe(replace(patterns))
          .pipe(vinyl.dest(`dist`))
      } catch (e) {
        err(e)
      } finally {
        cb(null, 5)
      }
    }, 1000)
  }

  return bach.settleSeries(fn1, fn2, fn3, fn4)()
}

bach

Compose your async functions with elegance.

MIT
Latest version published 2 years ago

Package Health Score

74 / 100
Full package analysis