It would be nice to have this function exposed in the API in a promisified variant.
That would allow for patterns like this:
somePromiseStream.wait().flush().then(...);
That means to wait until the stream's 'end' event has been emitted, then flush all remaining promises and return a promise for Promise.all() of them.
What do you think?
It would be nice to have this function exposed in the API in a promisified variant. That would allow for patterns like this:
That means to wait until the stream's 'end' event has been emitted, then flush all remaining promises and return a promise for
Promise.all()
of them. What do you think?