#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

#42 in #scoped

Download history 10267/week @ 2024-07-21 9653/week @ 2024-07-28 9883/week @ 2024-08-04 8620/week @ 2024-08-11 9113/week @ 2024-08-18 10188/week @ 2024-08-25 8232/week @ 2024-09-01 8794/week @ 2024-09-08 3544/week @ 2024-09-15 8401/week @ 2024-09-22 7768/week @ 2024-09-29 9236/week @ 2024-10-06 12318/week @ 2024-10-13 11891/week @ 2024-10-20 14481/week @ 2024-10-27 12284/week @ 2024-11-03

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