/span> <span class="mi">5</span>
<span class="p">}</span><span class="o">.</span><span class="nf">added</span><span class="p">(</span><span class="nv">to</span><span class="p">:</span> <span class="n">scope</span><span class="p">)</span>

<span class="c1">//cancel all added futures and coroutines</span>
<span class="n">scope</span><span class="o">.</span><span class="nf">cancel</span><span class="p">()</span>
</code></pre>

          </section>
          <section class="section task-group-section">
        