Open ORESoftware opened 7 years ago
Yes that seems like a good fit for that
thanks, do you find that the process.addAsyncListener
call
process.addAsyncListener({
create: noop,
before: function (context, data) {
tickId = tickId < MAX_SAFE_INTEGER ? tickId + 1 : 1
},
error: noop,
after: noop
})
is stable and reliable? Ideally for my library, I could add and remove listeners. Do you know if there is a way to remove listeners as well as add them?
@watson I am trying to get this issue on nodejs tracker some backup: https://github.com/nodejs/node/issues/25787
Discovered this library just now. Do you think this library can serve as the best answer to my question: https://stackoverflow.com/questions/40013501/javascript-node-js-event-loop-tick-ids
thanks!