#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

#47 in #scoped

Download history 11371/week @ 2024-11-21 11276/week @ 2024-11-28 15321/week @ 2024-12-05 11300/week @ 2024-12-12 5682/week @ 2024-12-19 3879/week @ 2024-12-26 11318/week @ 2025-01-02 15568/week @ 2025-01-09 15144/week @ 2025-01-16 16465/week @ 2025-01-23 16655/week @ 2025-01-30 19219/week @ 2025-02-06 12093/week @ 2025-02-13 8922/week @ 2025-02-20 11780/week @ 2025-02-27 10408/week @ 2025-03-06

46,194 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