Sha256: 26dfbc8576693fd4329a2016f8da2250231fa24bb1349d0131cccf45e35aec46
Contents?: true
Size: 768 Bytes
Versions: 27
Compression:
Stored size: 768 Bytes
Contents
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const Hook = require("./Hook"); const HookCodeFactory = require("./HookCodeFactory"); class AsyncParallelHookCodeFactory extends HookCodeFactory { content({ onError, onDone }) { return this.callTapsParallel({ onError: (i, err, done, doneBreak) => onError(err) + doneBreak(true), onDone }); } } const factory = new AsyncParallelHookCodeFactory(); class AsyncParallelHook extends Hook { compile(options) { factory.setup(this, options); return factory.create(options); } } Object.defineProperties(AsyncParallelHook.prototype, { _call: { value: undefined, configurable: true, writable: true } }); module.exports = AsyncParallelHook;
Version data entries
27 entries across 26 versions & 9 rubygems