Trait tauri::async_runtime::RuntimeHandle [−][src]
pub trait RuntimeHandle: Debug + Clone + Sync + Sync { fn spawn<F: Future>(&self, task: F) -> JoinHandle<F::Output>ⓘNotable traits for JoinHandle<T>impl<T> Future for JoinHandle<T> type Output = Result<T>;
where
F: Future + Send + 'static,
F::Output: Send + 'static; fn block_on<F: Future>(&self, task: F) -> F::Output; }
Expand description
Runtime handle definition.
Required methods
fn spawn<F: Future>(&self, task: F) -> JoinHandle<F::Output>ⓘNotable traits for JoinHandle<T>impl<T> Future for JoinHandle<T> type Output = Result<T>;
where
F: Future + Send + 'static,
F::Output: Send + 'static,
fn spawn<F: Future>(&self, task: F) -> JoinHandle<F::Output>ⓘNotable traits for JoinHandle<T>impl<T> Future for JoinHandle<T> type Output = Result<T>;
where
F: Future + Send + 'static,
F::Output: Send + 'static,
Notable traits for JoinHandle<T>
impl<T> Future for JoinHandle<T> type Output = Result<T>;
Spawns a future onto the runtime.