#thread #spawn #scoped

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

#35 in #spawn

Download history 16691/week @ 2025-09-18 19934/week @ 2025-09-25 17060/week @ 2025-10-02 19350/week @ 2025-10-09 20254/week @ 2025-10-16 21608/week @ 2025-10-23 19568/week @ 2025-10-30 22505/week @ 2025-11-06 17666/week @ 2025-11-13 21002/week @ 2025-11-20 13432/week @ 2025-11-27 15218/week @ 2025-12-04 16102/week @ 2025-12-11 17071/week @ 2025-12-18 4766/week @ 2025-12-25 10969/week @ 2026-01-01

51,613 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