es6-promise-pool icon indicating copy to clipboard operation
es6-promise-pool copied to clipboard

es6_promise_pool_1.default is not a constructor

Open kapil-ms opened this issue 8 years ago • 1 comments

I am using Typesript v2.5.2

Here is the code I use-

import PromisePool from 'es6-promise-pool';
let promiseRunner = async (producerFunc, concurrency) => {
    let pool = new PromisePool(producerFunc, concurrency);
    await pool.start();
};

I get the error es6_promise_pool_1.default is not a constructor.

kapil-ms avatar Nov 14 '17 00:11 kapil-ms

I believe #40 would fix this.

timdp avatar Nov 15 '17 14:11 timdp