Struct async_std::task::Builder [−][src]
pub struct Builder { /* fields omitted */ }
Expand description
Task builder that configures the settings of a new task.
Implementations
Spawns a task with the configured settings.
pub fn local<F, T>(self, future: F) -> Result<JoinHandle<T>> where
F: Future<Output = T> + 'static,
T: 'static,
pub fn local<F, T>(self, future: F) -> Result<JoinHandle<T>> where
F: Future<Output = T> + 'static,
T: 'static,
Spawns a task locally with the configured settings.