Improve docs for is_running to explain use case#94033
Conversation
|
r? @m-ou-se (rust-highfive has picked a reviewer for you, use r? to override) |
library/std/src/thread/mod.rs
Outdated
There was a problem hiding this comment.
Just a thought: we could 'fix' this by just always pthread_detaching every spawned thread directly, and only using our own return value Arc for 'join'ing threads. (This is also how I implemented scoped threads.) Then we can make sure that join will instantly return with no possibility of blocking as soon as the Arc is ready.
Rename JoinHandle::is_running to is_finished. This is renaming `is_running` to `is_finished` as discussed on the tracking issue here: rust-lang#90470 (comment) Taking some of the docs suggestions from rust-lang#94033
Rename JoinHandle::is_running to is_finished. This is renaming `is_running` to `is_finished` as discussed on the tracking issue here: rust-lang#90470 (comment) Taking some of the docs suggestions from rust-lang#94033
Rename JoinHandle::is_running to is_finished. This is renaming `is_running` to `is_finished` as discussed on the tracking issue here: rust-lang#90470 (comment) Taking some of the docs suggestions from rust-lang#94033
Rename JoinHandle::is_running to is_finished. This is renaming `is_running` to `is_finished` as discussed on the tracking issue here: rust-lang#90470 (comment) Taking some of the docs suggestions from rust-lang#94033
Rename JoinHandle::is_running to is_finished. This is renaming `is_running` to `is_finished` as discussed on the tracking issue here: rust-lang#90470 (comment) Taking some of the docs suggestions from rust-lang#94033
Rename JoinHandle::is_running to is_finished. This is renaming `is_running` to `is_finished` as discussed on the tracking issue here: rust-lang#90470 (comment) Taking some of the docs suggestions from rust-lang#94033
Rename JoinHandle::is_running to is_finished. This is renaming `is_running` to `is_finished` as discussed on the tracking issue here: rust-lang#90470 (comment) Taking some of the docs suggestions from rust-lang#94033
Rename JoinHandle::is_running to is_finished. This is renaming `is_running` to `is_finished` as discussed on the tracking issue here: rust-lang#90470 (comment) Taking some of the docs suggestions from rust-lang#94033
Rename JoinHandle::is_running to is_finished. This is renaming `is_running` to `is_finished` as discussed on the tracking issue here: rust-lang#90470 (comment) Taking some of the docs suggestions from rust-lang#94033
|
☔ The latest upstream changes (presumably #94612) made this pull request unmergeable. Please resolve the merge conflicts. |
is_running to explain use case and discourage busy-polllingis_running to explain use case and discourage busy-polling
06bddb5 to
7098a71
Compare
is_running to explain use case and discourage busy-pollingis_running to explain use case
|
I've rebased this to eliminate the merge conflicts. I think there's value in explaining the use case for this, to go along with the now-present explanation of when to use @rustbot ready |
|
@bors r+ rollup |
|
📌 Commit 7098a71 has been approved by |
Rollup of 11 pull requests Successful merges: - rust-lang#94033 (Improve docs for `is_running` to explain use case) - rust-lang#97269 (adjust transmute const stabilization version) - rust-lang#97805 (Add proper tracing spans to rustc_trait_selection::traits::error_reporting) - rust-lang#98022 (Fix erroneous span for borrowck error) - rust-lang#98124 (Improve loading of crates.js and sidebar-items.js) - rust-lang#98278 (Some token stream cleanups) - rust-lang#98306 (`try_fold_unevaluated` for infallible folders) - rust-lang#98313 (Remove lies in comments.) - rust-lang#98323 (:arrow_up: rust-analyzer) - rust-lang#98329 (Avoid an ICE and instead let the compiler report a useful error) - rust-lang#98330 (update ioslice docs to use shared slices) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
No description provided.