Function silkenweb_task::scope
source · pub fn scope<Fut>(f: Fut) -> impl Future<Output = Fut::Output>where
Fut: Future,
Expand description
Run a future with a local task queue.
On the server, this creates a tokio
task local queue. You can put
futures on this queue with spawn_local
.
On the browser, this does nothing and returns the original future.