diff options
author | 2022-01-28 18:24:07 +0700 | |
---|---|---|
committer | 2022-01-28 21:37:17 +0700 | |
commit | 167be45a7db7c1f60a79116766bdf38300429c6a (patch) | |
tree | 5af48807c8d90a73775fef68a51ae549880aa388 /src/time.rs | |
parent | 5dab5a327ef643ee38ac3e42ab35212fff445631 (diff) | |
download | iced-167be45a7db7c1f60a79116766bdf38300429c6a.tar.gz iced-167be45a7db7c1f60a79116766bdf38300429c6a.tar.bz2 iced-167be45a7db7c1f60a79116766bdf38300429c6a.zip |
Split `iced_futures` into different `backend` implementations
Diffstat (limited to 'src/time.rs')
-rw-r--r-- | src/time.rs | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/time.rs b/src/time.rs index 943aa42f..4f831171 100644 --- a/src/time.rs +++ b/src/time.rs @@ -1,12 +1,2 @@ //! Listen and react to time. -pub use crate::runtime::time::{Duration, Instant}; - -use crate::Subscription; - -/// Returns a [`Subscription`] that produces messages at a set interval. -/// -/// The first message is produced after a `duration`, and then continues to -/// produce more messages every `duration` after that. -pub fn every(duration: Duration) -> Subscription<Instant> { - iced_futures::time::every(duration) -} +pub use iced_futures::backend::default::time::*; |