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