#thread #scoped #spawn

thread-scoped

Unsafe and deprecated std::thread::scoped

4 releases (stable)

1.0.2 Jun 16, 2017
1.0.1 Aug 16, 2015
1.0.0 Jul 22, 2015
0.0.1 Jul 21, 2015

#7 in #spawn

Download history 594/week @ 2019-10-07 703/week @ 2019-10-14 744/week @ 2019-10-21 716/week @ 2019-10-28 755/week @ 2019-11-04 935/week @ 2019-11-11 1062/week @ 2019-11-18 890/week @ 2019-11-25 753/week @ 2019-12-02 714/week @ 2019-12-09 797/week @ 2019-12-16 565/week @ 2019-12-23 786/week @ 2019-12-30 659/week @ 2020-01-06 734/week @ 2020-01-13

3,278 downloads per month
Used in 43 crates (6 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