pub async fn run<'a, T>(
init: impl Into<<T as Component>::Init<'a>>,
) -> <T as Component>::Eventwhere
T: Component,Available on crate feature
winio only.Expand description
Runs a root component, and exits when the component outputs an event.