spawn_local
function · ferroui-system · v0.5.0
fn spawn_local<T: 'static>(future: impl Future<Output = Result<T, crate::ObservableError>> + 'static) -> super::task::Task<T>
Runs future on the current thread and gives its task: the output of the future ends it, an
error that is a cancellation (Canceled, TaskCanceledError)
cancels it, and a panic faults it with a TaskWorkError. The future is polled at once, and
again whenever it is woken (the module's documentation).
Deprecated since 0.5.0. use
ferroui_system::task::spawn_local, which gives aJoinHandle(.shared()for several observers)
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.