#thread #scoped #spawn

thread-scoped

Unsafe and deprecated std:🧵: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

#11 in #scoped

Download history 1074/week @ 2020-04-02 1084/week @ 2020-04-09 1330/week @ 2020-04-16 1445/week @ 2020-04-23 1000/week @ 2020-04-30 1231/week @ 2020-05-07 1220/week @ 2020-05-14 1037/week @ 2020-05-21 1177/week @ 2020-05-28 1228/week @ 2020-06-04 1127/week @ 2020-06-11 932/week @ 2020-06-18 790/week @ 2020-06-25 841/week @ 2020-07-02 1047/week @ 2020-07-09 935/week @ 2020-07-16

4,734 downloads per month
Used in 45 crates (7 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