Skip to main content

set_task_spawner

Function set_task_spawner 

Source
pub fn set_task_spawner(spawner: TaskSpawner)
Expand description

Tells the widget layer how to run the work a component starts.

An application using the framework’s own shell never calls this: the shell registers its executor on the way up. With none registered, each piece of work gets a thread of its own natively, and does not run on the Web.