gabdube / native-windows-gui

A light windows GUI toolkit for rust
https://gabdube.github.io/native-windows-gui/
MIT License
1.96k stars 127 forks source link

Async functions as event handlers don't work as expected #286

Open zodiacon opened 6 months ago

zodiacon commented 6 months ago

If an async function is defined, it's immediately "returned", and no code in the fuction executes, even when the first "await" is far. I'm using tokio::main with "Current Thread" flavor.