Trait concurrency_traits::TryJoinableHandle [−][src]
pub trait TryJoinableHandle: ThreadHandle { type Output; type ThreadError; fn try_join(self) -> Result<Self::Output, Self::ThreadError>; }
A handle to a spawned thread that can be joined, blocking the current thread until the target is finished. Analog for std::thread::JoinHandle
. If infallibility is needed look to JoinableHandle
.
Associated Types
type Output
[src]
The output of joining this thread.
type ThreadError
[src]
The possible error when joining this thread,
Required methods
fn try_join(self) -> Result<Self::Output, Self::ThreadError>
[src]
Tries to join the target thread blocking the current thread. Analog for std::thread::JoinHandle::join
.
Implementations on Foreign Types
impl<O> TryJoinableHandle for JoinHandle<O>
[src]
impl<O> TryJoinableHandle for JoinHandle<O>
[src]