4 ms·
Weird things can happen with event emitters mixed up with promises too. I wrote a short piece with an example: https://qubyte.codes/blog/promises-and-nodejs-ev
by qubyte 10y ago
Weird things can happen with event emitters mixed up with promises too. I wrote a short piece with an example:
https://qubyte.codes/blog/promises-and-nodejs-event-emitters-dont-mix https://qubyte.codes/blog/promises-and-nodejs-event-emitters...
(The title is a bit overstated, since it's really about the specific example of unhandled error emissions in a promise chain.)
Regardless of the merits or problems of either post, a lesson is to be careful around promises when errors are involved.