#thread #scoped #spawn

thread-scoped

Unsafe and deprecated std:🧵:scoped

4 releases (stable)

Uses old Rust 2015

1.0.2 Jun 16, 2017
1.0.1 Aug 16, 2015
1.0.0 Jul 22, 2015
0.0.1 Jul 21, 2015

#13 in #scoped

Download history 821/week @ 2021-09-27 1410/week @ 2021-10-04 1944/week @ 2021-10-11 1966/week @ 2021-10-18 1527/week @ 2021-10-25 2047/week @ 2021-11-01 1857/week @ 2021-11-08 1805/week @ 2021-11-15 1869/week @ 2021-11-22 2056/week @ 2021-11-29 1673/week @ 2021-12-06 2086/week @ 2021-12-13 1455/week @ 2021-12-20 1341/week @ 2021-12-27 1606/week @ 2022-01-03 2171/week @ 2022-01-10

6,719 downloads per month
Used in 42 crates (5 directly)

MIT/Apache

6KB
107 lines

thread-scoped

travis-badge release-badge docs-badge license-badge

A std::thread::spawn() that can access its current scope. Stable fork of the deprecated std::thread::scoped()

Memory Unsafety

This interface is inherently unsafe if the JoinGuard is allowed to leak without being dropped. See rust-lang/rust#24292 for more details.

Alternatives

This crate is only provided as a fallback mirror for legacy dependency on the deprecated libstd interface. Using a modern and safe API instead is recommended:

No runtime deps