限流功能。</p>
<pre class="prettyprint"><code class="language-scala">Source
  .fromIterator(() =&gt; Iterator.from(0))
  .throttle(5, 500.millis)
</code></pre>
<p><code>throttle</code>限制每500毫秒内最多只生产5个元素（可发送5个到下游）。</p>
</div>
</article>
<div class="row">
<div class="small-12 column">
<section class="nav-prev-next row">
<div class="nav-prev small-6 column">
<a href="../streams/group.html"><i class="icon-prev"></i> <span class="link-prev">Streams 分组</spa