Replace Command with a new Task API with chain support
This commit is contained in:
parent
e6d0b3bda5
commit
a25b1af456
74 changed files with 1351 additions and 1767 deletions
|
|
@ -1,5 +1,5 @@
|
|||
//! Build interactive programs using The Elm Architecture.
|
||||
use crate::Command;
|
||||
use crate::Task;
|
||||
|
||||
use iced_core::text;
|
||||
use iced_core::Element;
|
||||
|
|
@ -25,9 +25,9 @@ pub trait Program: Sized {
|
|||
/// produced by either user interactions or commands, will be handled by
|
||||
/// this method.
|
||||
///
|
||||
/// Any [`Command`] returned will be executed immediately in the
|
||||
/// Any [`Task`] returned will be executed immediately in the
|
||||
/// background by shells.
|
||||
fn update(&mut self, message: Self::Message) -> Command<Self::Message>;
|
||||
fn update(&mut self, message: Self::Message) -> Task<Self::Message>;
|
||||
|
||||
/// Returns the widgets to display in the [`Program`].
|
||||
///
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue