File: README.md

package info (click to toggle)
rust-thread-scoped 1.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 88 kB
  • sloc: makefile: 2
file content (30 lines) | stat: -rw-r--r-- 1,296 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# thread-scoped

[![travis-badge][]][travis] [![release-badge][]][cargo] [![docs-badge][]][docs] [![license-badge][]][license]

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](https://github.com/rust-lang/rust/issues/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:

- [crossbeam::scope](https://github.com/crossbeam-rs/crossbeam)


[travis-badge]: https://img.shields.io/travis/arcnmx/thread-scoped-rs/master.svg?style=flat-square
[travis]: https://travis-ci.org/arcnmx/thread-scoped-rs
[release-badge]: https://img.shields.io/crates/v/thread_scoped.svg?style=flat-square
[cargo]: https://crates.io/crates/thread-scoped
[docs-badge]: https://img.shields.io/badge/API-docs-blue.svg?style=flat-square
[docs]: http://arcnmx.github.io/thread-scoped-rs/thread_scoped/
[license-badge]: https://img.shields.io/badge/license-MIT-lightgray.svg?style=flat-square
[license]: https://github.com/arcnmx/thread-scoped-rs/blob/master/COPYING