iced-rs / iced

A cross-platform GUI library for Rust, inspired by Elm
https://iced.rs
MIT License
22.96k stars 1.06k forks source link

How can perform async task in component? #2388

Open drunkenlion opened 1 month ago

drunkenlion commented 1 month ago

Is there an existing issue for this?

Is this issue related to iced?

What happened?

I write a component by the function . How can perform async task in component , Command::perform? But it don't perform!!!

What is the expected behavior?

I can execute update in component by the async task

Version

crates.io release

Operating System

macOS

Do you have any log output?

no