Implement time::repeat and simplify Subscription::run_with
This commit is contained in:
parent
75a6f32a5e
commit
3a07c631ad
3 changed files with 48 additions and 42 deletions
|
|
@ -365,9 +365,9 @@
|
|||
//!
|
||||
//! As with tasks, some modules expose convenient functions that build a [`Subscription`] for you—like
|
||||
//! [`time::every`] which can be used to listen to time, or [`keyboard::on_key_press`] which will notify you
|
||||
//! of any key presses. But you can also create your own with [`Subscription::run`] and [`run_with_id`].
|
||||
//! of any key presses. But you can also create your own with [`Subscription::run`] and [`run_with`].
|
||||
//!
|
||||
//! [`run_with_id`]: Subscription::run_with_id
|
||||
//! [`run_with`]: Subscription::run_with
|
||||
//!
|
||||
//! ## Scaling Applications
|
||||
//! The `update`, `view`, and `Message` triplet composes very nicely.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue