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:
parent
525a14cfb1
commit
a64529af17
15 changed files with 34 additions and 34 deletions
|
|
@ -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)
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue