pub struct Task<T> { /* private fields */ }Expand description
A Dart Future as the framework ports it: a spawned task’s result, or a value known now,
and a Future itself.
Dart’s futures always run to completion; dropping this handle likewise lets the task
finish unobserved, where gpui’s Task would cancel it.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Task<T>where
TaskInner<T>: Freeze,
impl<T> RefUnwindSafe for Task<T>where
TaskInner<T>: RefUnwindSafe,
impl<T> Send for Task<T>where
TaskInner<T>: Send,
impl<T> Sync for Task<T>where
TaskInner<T>: Sync,
impl<T> UnsafeUnpin for Task<T>where
TaskInner<T>: UnsafeUnpin,
impl<T> UnwindSafe for Task<T>where
TaskInner<T>: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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