(queue, promiseFactory)
| 7884 | } |
| 7885 | |
| 7886 | function sequentialize(queue, promiseFactory) { |
| 7887 | return function () { |
| 7888 | var args = arguments; |
| 7889 | var that = this; |
| 7890 | return queue.add(function () { |
| 7891 | return promiseFactory.apply(that, args); |
| 7892 | }); |
| 7893 | }; |
| 7894 | } |
| 7895 | |
| 7896 | // uniq an array of strings, order not guaranteed |
| 7897 | // similar to underscore/lodash _.uniq |
no test coverage detected
searching dependent graphs…