<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>22-Stream on 编程那些事儿</title><link>https://before80.github.io/prgms/Rust/asyncBook/streams/</link><description>Recent content in 22-Stream on 编程那些事儿</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Sun, 23 Aug 2026 21:05:58 +0800</lastBuildDate><atom:link href="https://before80.github.io/prgms/Rust/asyncBook/streams/index.xml" rel="self" type="application/rss+xml"/><item><title>22.1-迭代与并发</title><link>https://before80.github.io/prgms/Rust/asyncBook/streams/01-iteration-and-concurrency/</link><pubDate>Sat, 22 Aug 2026 19:00:00 +0800</pubDate><guid>https://before80.github.io/prgms/Rust/asyncBook/streams/01-iteration-and-concurrency/</guid><description>&lt;blockquote&gt;
&lt;p&gt;译文 · 基于 &lt;a href="https://rust-lang.github.io/async-book/"&gt;Asynchronous Programming in Rust&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h1 id="iteration-and-concurrency"&gt;迭代与并发&lt;/h1&gt;
&lt;blockquote&gt;
&lt;p&gt;原文链接: &lt;a href="https://rust-lang.github.io/async-book/05_streams/02_iteration_and_concurrency.html"&gt;https://rust-lang.github.io/async-book/05_streams/02_iteration_and_concurrency.html&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;与同步 &lt;code&gt;Iterator&lt;/code&gt; 类似，有多种方式迭代和处理 &lt;code&gt;Stream&lt;/code&gt; 中的值。有组合子风格的方法如 &lt;code&gt;map&lt;/code&gt;、&lt;code&gt;filter&lt;/code&gt; 和 &lt;code&gt;fold&lt;/code&gt;，以及遇错即退的对应方法 &lt;code&gt;try_map&lt;/code&gt;、&lt;code&gt;try_filter&lt;/code&gt; 和 &lt;code&gt;try_fold&lt;/code&gt;。&lt;/p&gt;</description></item></channel></rss>