---
title: "Discussion on \"Rust scoped threads are back\" | Hashnode"
description: "Discussion on \"Rust scoped threads are back\". Just wanted to share this slight modification on the documented example.  I just added some dbg! calls and put the example in a main function, but now you can try this with copy and paste into your main.rs for a new cargo project.\nuse std::thread;\n\nf..."
url: "https://hashnode.com/posts/rust-scoped-threads-are-back/636664c2fce6f0b6100d5efc"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Rust scoped threads are back](https://gatewaynode.com/rust-scoped-threads-are-back?utm_source=hashnode&utm_medium=feed)

Just wanted to share this slight modification on the documented example. I just added some dbg! calls and put the example in a main function, but now you can try this with copy and paste into your main.rs for a new cargo project. use std::thread; f...

Nov 5, 2022 · 1 min read · gatewaynode.com  
Read the article

-   [#rust](https://hashnode.com/tag/rust)
-   [#multithreading](https://hashnode.com/tag/multithreading)
-   [#example](https://hashnode.com/tag/example)

## Written by

[gatewaynode](https://hashnode.com/@gatewaynode)

@gatewaynode · Mars

  
[View profile](https://hashnode.com/@gatewaynode)

Arch, Sec, Dev, Ops,

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
