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

Function yew::platform::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.