Sep 5, 2023
Notes to myself - NodeJS stream APIs
- Calling `callback(err)` makes the stream stopped
- But does not stop the piped upstreams, they will continue until one of them has reached their watermark and then the entire pipeline will fail
- Watermark = how many chunks can be processed at a time
- Always calling `push()` with endcoding in the object mode