       <span class='macro'>println</span><span class='macro'>!</span>(<span class='string'>&quot;{}&quot;</span>, <span class='ident'>rx</span>.<span class='ident'>recv</span>().<span class='ident'>unwrap</span>());
    }
}</pre>

<!-- Here we create 10 threads, asking each to calculate the square of a number (`i` -->

<!-- at the time of `spawn()`), and then `send()` back the answer over the channel. -->

<p>ここでは、１０個のスレッドを生成し、それぞれに数値 ( <code>spawn()</code> 