#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

#41 in #scoped

Download history 5996/week @ 2023-12-11 6151/week @ 2023-12-18 2139/week @ 2023-12-25 5209/week @ 2024-01-01 6989/week @ 2024-01-08 6721/week @ 2024-01-15 8629/week @ 2024-01-22 5548/week @ 2024-01-29 7571/week @ 2024-02-05 4299/week @ 2024-02-12 7286/week @ 2024-02-19 7783/week @ 2024-02-26 6530/week @ 2024-03-04 7432/week @ 2024-03-11 9926/week @ 2024-03-18 7974/week @ 2024-03-25

32,299 downloads per month
Used in 37 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