Struct rquickjs_core::Promise [−][src]
pub struct Promise<T> { /* fields omitted */ }
futures
only.Expand description
Future-aware promise
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for Promise<T>
impl<T> !UnwindSafe for Promise<T>
Blanket Implementations
Mutably borrows from an owned value. Read more
unstable
only.Returns a Future that delays execution for a specified time. Read more
fn flatten(self) -> FlattenFuture<Self, <Self::Output as IntoFuture>::Future> where
Self::Output: IntoFuture,
fn flatten(self) -> FlattenFuture<Self, <Self::Output as IntoFuture>::Future> where
Self::Output: IntoFuture,
unstable
only.Flatten out the execution of this future when the result itself can be converted into another future. Read more
unstable
only.Waits for one of two similarly-typed futures to complete. Read more
unstable
only.Waits for one of two similarly-typed fallible futures to complete. Read more
unstable
or docs
only.Waits for two similarly-typed futures to complete. Read more
unstable
or docs
only.Waits for two similarly-typed fallible futures to complete. Read more
A convenience for calling Future::poll()
on !
Unpin
types.
Returns the result of self
or other
future, preferring self
if both are ready. Read more
std
only.Returns the result of self
or other
future, with no preference if both are ready. Read more
alloc
only.Boxes the future and changes its type to dyn Future + Send + 'a
. Read more
into_future
)The output that the future will produce on completion.
type Future = F
type Future = F
into_future
)Which kind of future are we turning this into?
into_future
)Creates a future from a value.
type Future = T
type Future = T
Which kind of future are we turning this into?
Create a future from a value