diff options
author | 2025-01-24 18:59:44 +0100 | |
---|---|---|
committer | 2025-01-24 18:59:44 +0100 | |
commit | 5eedf5798c0fcd92cfd3f304ce9454bb6c274f09 (patch) | |
tree | 0d8d28ef8c062ea1a1651b77531ed091dfe5e561 /src | |
parent | 654c4b37148bda655f0c6676845d2b4ead801f40 (diff) | |
parent | 3d893ae01b64eb51b2f5854949c694090118e052 (diff) | |
download | iced-5eedf5798c0fcd92cfd3f304ce9454bb6c274f09.tar.gz iced-5eedf5798c0fcd92cfd3f304ce9454bb6c274f09.tar.bz2 iced-5eedf5798c0fcd92cfd3f304ce9454bb6c274f09.zip |
Merge pull request #2747 from iced-rs/time-repeat-subscription
Implement `time::repeat` and simplify `Subscription::run_with`
Diffstat (limited to '')
-rw-r--r-- | src/lib.rs | 4 | ||||
-rw-r--r-- | src/time.rs | 2 |
2 files changed, 3 insertions, 3 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. diff --git a/src/time.rs b/src/time.rs index 26d31c0a..98a800ac 100644 --- a/src/time.rs +++ b/src/time.rs @@ -1,5 +1,5 @@ //! Listen and react to time. -pub use crate::core::time::{Duration, Instant}; +pub use crate::core::time::*; #[allow(unused_imports)] #[cfg_attr( |