 the connection between a stream and its dependent streams.</p>
<pre><code class="lang-javascript">var value = stream()
var doubled = value.map(function(value) {return value * 2})

value.end(true) // set to ended state

value(5)

console.log(doubled())
// logs undefined because `doubled` no longer depends on `value`
</code></pre>
<p>Ended streams still have state container semantics, i.e. you can still use them as getter-setters, even after they are ended.</p>
<pre><code class="lang-javascript">var value = 