Skip to content

Commit 650d245

Browse files
authored
doc: clarify thread::scoped::JoinGuard chapter (#313)
1 parent 7cf00d4 commit 650d245

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/leaking.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,12 @@ horribly degenerate. Also *oh my gosh* it's such a ridiculous corner case.
176176

177177
## thread::scoped::JoinGuard
178178

179+
> Note: This API has already been removed from std, for more information
180+
> you may refer [issue #24292](https://github.com/rust-lang/rust/issues/24292).
181+
>
182+
> We still remain this chapter here because we think this example is still
183+
> important, regardless of if it is still in std.
184+
179185
The thread::scoped API intended to allow threads to be spawned that reference
180186
data on their parent's stack without any synchronization over that data by
181187
ensuring the parent joins the thread before any of the shared data goes out

0 commit comments

Comments
 (0)