Implement time::repeat and simplify Subscription::run_with

This commit is contained in:
Héctor Ramón Jiménez 2025-01-24 16:38:56 +01:00
parent 75a6f32a5e
commit 3a07c631ad
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
3 changed files with 48 additions and 42 deletions

View file

@ -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.