pub fn start(
event_loop: EventLoop<()>,
window: Window,
app: impl App + 'static,
target_frame_time: Duration,
max_frame_time: Duration
) -> Result<()>
Expand description
Start the application.
Depending on the platform, this function may not return (see https://docs.rs/winit/latest/winit/event_loop/struct.EventLoop.html#method.run).
On web uses https://docs.rs/winit/latest/wasm32-unknown-unknown/winit/platform/web/trait.EventLoopExtWebSys.html#tymethod.spawn instead of run()
.