This is unreleased documentation for Yew Next version.
For up-to-date documentation, see the latest version on docs.rs.
yew::platform

Function spawn_local

pub fn spawn_local<F>(f: F)
where F: Future<Output = ()> + 'static,
Expand description

Spawns a task on current thread.

ยงPanics

This function will panic when not being executed from within the Runtime.