Closed p16 closed 5 years ago
Good spot. As we accept an async each()
we probably need to return Promise
s from the functions that call that and document appropriately.
The resolution is to move the entire interface to async. In most cases this would not be a breaking change, but some operations (as seen in the test) would now require an await
next to eachSocket()
.
This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.
Hi there, when using the subscription filter I think the
eachSocket
function behaves as async instead of synchronous.route.subscribers._forEachSubscriber
is used ineachSocket
but its definition makes it anasync
function.I'm open to work on a fix on this, but I'm not sure how to proceed given the
each
function passed to_forEachSubscriber
sometimes is synchronous and sometimes is async.Do you have any idea?