#scoped #thread #spawn

deprecated thread-scoped

Unsafe and deprecated std::thread::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

#45 in #scoped

Download history 11277/week @ 2024-04-12 12627/week @ 2024-04-19 10550/week @ 2024-04-26 11077/week @ 2024-05-03 12347/week @ 2024-05-10 8804/week @ 2024-05-17 8305/week @ 2024-05-24 10223/week @ 2024-05-31 11204/week @ 2024-06-07 10150/week @ 2024-06-14 7554/week @ 2024-06-21 9183/week @ 2024-06-28 7981/week @ 2024-07-05 8522/week @ 2024-07-12 9779/week @ 2024-07-19 8239/week @ 2024-07-26

35,573 downloads per month
Used in 38 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