diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-05-27 17:36:13 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-05-27 17:36:13 +0200 |
commit | 5f466137ad6ac596600e3ff53c9b786815398445 (patch) | |
tree | f914c221874f0b16bf3def7ac01d59d1a99a3b0b /node_modules/when/parallel.js | |
parent | c9f5ac8e763eda19aa0564179300cfff76785435 (diff) |
node_modules, clean up package.json
Diffstat (limited to 'node_modules/when/parallel.js')
-rw-r--r-- | node_modules/when/parallel.js | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/node_modules/when/parallel.js b/node_modules/when/parallel.js deleted file mode 100644 index 6616a82be..000000000 --- a/node_modules/when/parallel.js +++ /dev/null @@ -1,39 +0,0 @@ -/** @license MIT License (c) copyright 2011-2013 original author or authors */ - -/** - * parallel.js - * - * Run a set of task functions in parallel. All tasks will - * receive the same args - * - * @author Brian Cavalier - * @author John Hann - */ - -(function(define) { -define(function(require) { - - var when = require('./when'); - var all = when.Promise.all; - var slice = Array.prototype.slice; - - /** - * Run array of tasks in parallel - * @param tasks {Array|Promise} array or promiseForArray of task functions - * @param [args] {*} arguments to be passed to all tasks - * @return {Promise} promise for array containing the - * result of each task in the array position corresponding - * to position of the task in the tasks array - */ - return function parallel(tasks /*, args... */) { - return all(slice.call(arguments, 1)).then(function(args) { - return when.map(tasks, function(task) { - return task.apply(void 0, args); - }); - }); - }; - -}); -})(typeof define === 'function' && define.amd ? define : function (factory) { module.exports = factory(require); }); - - |