summaryrefslogtreecommitdiffstats
path: root/src/time.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-01-28 18:24:07 +0700
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-01-28 21:37:17 +0700
commit167be45a7db7c1f60a79116766bdf38300429c6a (patch)
tree5af48807c8d90a73775fef68a51ae549880aa388 /src/time.rs
parent5dab5a327ef643ee38ac3e42ab35212fff445631 (diff)
downloadiced-167be45a7db7c1f60a79116766bdf38300429c6a.tar.gz
iced-167be45a7db7c1f60a79116766bdf38300429c6a.tar.bz2
iced-167be45a7db7c1f60a79116766bdf38300429c6a.zip
Split `iced_futures` into different `backend` implementations
Diffstat (limited to '')
-rw-r--r--src/time.rs12
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::*;