How can I use async function in slint-ui #1364
Replies: 2 comments
-
You’re right, none of our examples use async (yet). However you can look into the cargo-ui source code to find an approach of combining Slint with async: https://github.com/slint-ui/cargo-ui |
Beta Was this translation helpful? Give feedback.
-
Right, we should have a convinient way to run async code. Lines 342 to 369 in 474eb34 Unfortunately, you can't use it as is as it uses private API, but you can replace the |
Beta Was this translation helpful? Give feedback.
-
I haven't found async key word in the example. How can I use it ?
Beta Was this translation helpful? Give feedback.
All reactions