Open chaser92 opened 10 years ago
Can't you just check for an "end" event on the stream? Not sure why this is needed.
Because I don't even want to read from the stream when I don't know whether the compilation succeeded. No PDF output will be in the stream anyway
2014-07-15 2:47 GMT+02:00 Mikola Lysenko notifications@github.com:
Can't you just check for an "end" event on the stream? Not sure why this is needed.
— Reply to this email directly or view it on GitHub https://github.com/mikolalysenko/node-latex/pull/8#issuecomment-48978293 .
Pozdrawiam, Mariusz Kierski
It doesn't hurt to have this notification, does it? No one needs to subscribe after all.
In my use case I'd like to know if LaTeX processing succeeded before I started actually reading from stream (e.g. in a promise) - therefore I added an event when LaTeX process succeeded.