Function sycamore_futures::provide_executor_scope
source · [−]pub async fn provide_executor_scope<U>(f: impl Future<Output = U>) -> U
Expand description
If running on wasm32
target, does nothing. Otherwise creates a new tokio::task::LocalSet
scope.
Normally, you do not need to call this as it is handled internally by Sycamore when creating your app.