You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let native_options = eframe::NativeOptions::default();
eframe::run_native(
"Blog-Demo for async / tokio",
native_options,
Box::new(|cc| Box::new(BlogClient::new(cc))),
)
.unwrap();
}
Doing this is undefined behavior. It causes serious problems on platforms like macOS, and blocks one of the tokio worker threads. This flavor of UB is visible on macOS where the app will crash with an uncaught exception when closing the window:
This application nests the
winit
event loop inside thetokio
event loop:example-blog-client/src/main.rs
Lines 17 to 26 in 7b42b9a
Doing this is undefined behavior. It causes serious problems on platforms like macOS, and blocks one of the
tokio
worker threads. This flavor of UB is visible on macOS where the app will crash with an uncaught exception when closing the window:Trace/BPT trap: 5
Further reading:
The text was updated successfully, but these errors were encountered: