Pipe Works
Streams, chunks, backpressure, pipe, pipeline and for await.
0 / 6 levels · 0 / 18 ★Start playing ›
Pipe Works
A stream is plumbing. Data flows from a source through a tank into a drain. The tank has a fill line, highWaterMark: past it the stream asks you to stop pouring until it drains.
Your rulebook
Finish a level to add its rule. Fill the book and you can explain all of this in an interview.
- 1Finish Chunks, not the whole thing to unlock this rule.
- 2Finish write() says stop to unlock this rule.
- 3Finish Wait for drain to unlock this rule.
- 4Finish pipe() does it for you to unlock this rule.
- 5Finish pipeline() cleans up to unlock this rule.
- 6Finish for await reads one at a time to unlock this rule.