@TooTallNate the answer is incorrect. You should absolutely care about the return value .write .
What does it mean? Do I have to wait for a leak event before I can write again?
Yes, when .write returns false, you have to wait.
What happened to the data I was trying to write? Is it lost?
No, it is not lost, it is buffered in the correct order.
What happens when I call to write without waiting for a leak event?
If you do not handle the leak event correctly, your script will block the event loop and ultimately run out of memory limits, which could lead to the application crashing.
In this other question, I will give a detailed explanation: why trying to write a large large file leads to a lack of js heap memory
Marcos casagrande
source share