code></pre>
<p>In the example above, the <code>a</code> stream is active, but <code>b</code> is pending. setting <code>b(&quot;world&quot;)</code> would cause <code>b</code> to become active, and therefore <code>greeting</code> would also become active, and be updated to have the value <code>&quot;hello world&quot;</code></p>
<h4 id="ended-state"><a href="#ended-state">Ended state</a></h4>
<p>A stream can stop affecting its dependent streams by calling <code>stream.end(true)</code>. This effectively removes