The Streams API is Great

The Streams API is even more powerful than it looks. It not only handles backpressure and queueing but also propagates abort and close actions upwards. Transform streams can also define a flush step before closing.