Hi, I’m using the integration example as a starting point, and so far it’s been great. However, I can’t seem to execute async tasks in my actions, since Task::perform doesn’t seem to do anything.
I’ve tried going at it from several angles but none seem to work. Did I miss anything? Thanks for the help.
From my understanding, Task::perform
doesn’t perform any actions on its own. It just creates a future. You will need to return that future in your update/new
function for the task to execute in the background.
Hope that helps!
Hi, as of the time of the question the issue was that, in the integration
example, Iced was initialized via a different api State::new
and didn’t implement Task
handling among other things.
Thanks for the help!