Changed cosmic::command module to cosmic::task and changed cosmic::Task to reexport cosmic::app::Task instead of iced::Task

This commit is contained in:
Adam Cosner 2024-11-20 16:32:37 -08:00 committed by Ashley Wulber
parent 525a14cfb1
commit a64529af17
15 changed files with 34 additions and 34 deletions

View file

@ -193,7 +193,7 @@ impl<Message: Clone + Send + 'static> Toasts<Message> {
#[cfg(feature = "tokio")]
{
let on_close = self.on_close;
crate::command::future(async move {
crate::task::future(async move {
tokio::time::sleep(duration).await;
on_close(id)
})