pub struct JoinFuture<T> { /* private fields */ }Expand description
A handle over a spawned task — the RTEMS-side mirror of
tokio::task::JoinHandle. await it for Result<T, JoinError>.
Implementations§
Source§impl<T> JoinFuture<T>
impl<T> JoinFuture<T>
Sourcepub fn abort(&self)
pub fn abort(&self)
Request cancellation — mirrors tokio::task::JoinHandle::abort.
Best-effort: the task is dropped at its next suspension point (or before
its first poll if not yet started). A task already inside a synchronous
stretch runs to its next await before the cancel is observed.
Sourcepub fn is_finished(&self) -> bool
pub fn is_finished(&self) -> bool
true once the task has produced its result — mirrors
tokio::task::JoinHandle::is_finished.
Sourcepub fn abort_handle(&self) -> AbortHandle
pub fn abort_handle(&self) -> AbortHandle
A non-generic abort handle for this task — mirrors
tokio::task::JoinHandle::abort_handle.
Trait Implementations§
Source§impl<T> Future for JoinFuture<T>
impl<T> Future for JoinFuture<T>
Auto Trait Implementations§
impl<T> Freeze for JoinFuture<T>
impl<T> RefUnwindSafe for JoinFuture<T>
impl<T> Send for JoinFuture<T>where
T: Send,
impl<T> Sync for JoinFuture<T>where
T: Send,
impl<T> Unpin for JoinFuture<T>
impl<T> UnsafeUnpin for JoinFuture<T>
impl<T> UnwindSafe for JoinFuture<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more