# Thread scope

* using [thread::scope](https://doc.rust-lang.org/stable/std/thread/fn.scope.html) there is an even simpler solution.

{% embed include file="src/examples/threads/thread-scope/src/main.rs" %}
{% embed include file="src/examples/threads/thread-scope/out.out" %}


