#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

#11 in #scoped

Download history 1203/week @ 2020-09-18 1133/week @ 2020-09-25 1174/week @ 2020-10-02 1080/week @ 2020-10-09 1190/week @ 2020-10-16 1105/week @ 2020-10-23 1311/week @ 2020-10-30 1103/week @ 2020-11-06 1061/week @ 2020-11-13 1234/week @ 2020-11-20 820/week @ 2020-11-27 959/week @ 2020-12-04 1117/week @ 2020-12-11 956/week @ 2020-12-18 1077/week @ 2020-12-25 1290/week @ 2021-01-01

4,020 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