(queue, promiseFactory)
| 7874 | } |
| 7875 | |
| 7876 | function sequentialize(queue, promiseFactory) { |
| 7877 | return function () { |
| 7878 | var args = arguments; |
| 7879 | var that = this; |
| 7880 | return queue.add(function () { |
| 7881 | return promiseFactory.apply(that, args); |
| 7882 | }); |
| 7883 | }; |
| 7884 | } |
| 7885 | |
| 7886 | // uniq an array of strings, order not guaranteed |
| 7887 | // similar to underscore/lodash _.uniq |
no test coverage detected
searching dependent graphs…