9
Tracking Issue for JoinHandle::is_running · Issue #90470 · rust-lang/rust · GitH...
source link: https://github.com/rust-lang/rust/issues/90470
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Feature gate: #![feature(thread_is_running)]
Public API
impl<T> JoinHandle<T> { /// Checks if the the associated thread is still running its main function. /// /// This might return `false` for a brief moment after the thread's main /// function has returned, but before the thread itself has stopped running. pub fn is_running(&self) -> bool; }
Steps / History
- Implementation: #90439
- Final comment period (FCP)
- Stabilization PR
Unresolved Questions
- Do we also want to provide a way to access the result of the thread without having to .join() it? See #90439 (comment)
- Do we also want this in the form of a Future? See #90439 (comment)
-
Name it
is_finished
instead?
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK