@@ -18,7 +18,7 @@ channel receiver. The first difference is time: iterators are synchronous, while
1818the channel receiver is asynchronous. The second is the API. When working
1919directly with ` Iterator ` , we call its synchronous ` next ` method. With the
2020` trpl::Receiver ` stream in particular, we called an asynchronous ` recv ` method
21- instead. Otherwise, these APIs otherwise feel very similar, and that similarity
21+ instead. Otherwise, these APIs feel very similar, and that similarity
2222isn’t a coincidence. A stream is like an asynchronous form of iteration. Whereas
2323the ` trpl::Receiver ` specifically waits to receive messages, though, the
2424general-purpose stream API is much broader: it provides the next item the
@@ -123,7 +123,7 @@ we can do that _is_ unique to streams.
123123
124124Many concepts are naturally represented as streams: items becoming available in
125125a queue, chunks of data being pulled incrementally from the filesystem when the
126- full data set is too large for the computer’s , or data arriving over the
126+ full data set is too large for the computer’s memory , or data arriving over the
127127network over time. Because streams are futures, we can use them with any other
128128kind of future and combine them in interesting ways. For example, we can batch
129129up events to avoid triggering too many network calls, set timeouts on sequences
0 commit comments