winit/event_loop: Add register_app and run_app_never_return

To allow users to explicitly choose the run semantics that they want.
This commit is contained in:
Mads Marquart
2025-03-17 04:49:58 +01:00
committed by Kirill Chibisov
parent c98d880a1c
commit cc23fbf3be
16 changed files with 102 additions and 71 deletions

View File

@@ -169,10 +169,6 @@ impl EventLoop {
Ok(event_loop)
}
pub fn run_app<A: ApplicationHandler>(mut self, app: A) -> Result<(), EventLoopError> {
self.run_app_on_demand(app)
}
pub fn run_app_on_demand<A: ApplicationHandler>(
&mut self,
mut app: A,