Struct rquickjs_core::Executor [−][src]
pub struct Executor { /* fields omitted */ }
futures
only.Expand description
The async executor future
The executor which returning by Runtime::run_executor
.
It should be spawned using preferred async runtime to get async features works as expected.
The executor future will be pending until runtime is dropped.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Executor
impl !UnwindSafe for Executor
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