Closed reyamir closed 1 month ago
Seems to also affect Linux, but not Windows
Can you try with:
fn main() {
let rt = tokio::runtime::Builder::new_multi_thread()
.enable_all()
.build()
.unwrap();
let _guard = rt.enter();
launch_with_title(|| rsx!(label { "Hello, World!" }), "Custom Tokio Runtime")
}
It still stuck after few seconds
Oh sorry, I still use #[tokio::main]
and async fn main
I've updated my code exactly like you, and it work fine now.
Nice, just fixed the example in https://github.com/marc2332/freya/commit/ef35ad266d324325c5af95226eca819c912ac545
Description: Add
custom-tokio-rt
to Cargo features. Then create simple app:And run app like normally, after few seconds CPU usage will spike to very high cause app hang forever.
Reprocedue repo: https://github.com/reyamir/macos-app-stuck