pub struct TaskJoiner<'a, T> { /* private fields */ }Expand description
A handle to a running task.
You can call TaskJoiner::join from a synchronous context to block
execution and yield the future’s value. If you want to wait for execution to
finish from an asynchronous context, use .await on the joiner. If the
joiner is dropped then execution of the future continues to completion but
the return value is lost, aka detatch-on-drop.
Implementations§
Source§impl<'a, T> TaskJoiner<'a, T>
impl<'a, T> TaskJoiner<'a, T>
Trait Implementations§
Source§impl<'a, T> Future for TaskJoiner<'a, T>
impl<'a, T> Future for TaskJoiner<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for TaskJoiner<'a, T>
impl<'a, T> !RefUnwindSafe for TaskJoiner<'a, T>
impl<'a, T> !Send for TaskJoiner<'a, T>
impl<'a, T> !Sync for TaskJoiner<'a, T>
impl<'a, T> Unpin for TaskJoiner<'a, T>
impl<'a, T> !UnwindSafe for TaskJoiner<'a, 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<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