pub fn set_wake(f: Box<dyn Fn() + Send + Sync>)
A backend registers how to wake its UI thread when the state changes.