Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify winit runner exit code reporting (#13151)
# Objective ~Returning a app exit code from the winit runner is complicated and deadlock prone.~ The code to return a app exit code is rather shoddy. It's use of mutex is redundant, It uses unwrap when not required and can be broken by a maintainer simply forgetting to set a value. ## Solution Switch to using a channel. - Deals with situations in which a event loop exits unexpectedly. - Never panics. Even in extreme cases.
- Loading branch information
Showing
1 changed file
with
12 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters