summaryrefslogtreecommitdiffstats
path: root/src/time.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2022-01-31 17:01:19 +0700
committerLibravatar GitHub <noreply@github.com>2022-01-31 17:01:19 +0700
commite4ef29ef20724c3d1a4beff39ddfdaf6d45f9683 (patch)
tree6e0c9c38366c9d70204c80fc66bd8e8a7652cf52 /src/time.rs
parentc75ed37148b019358b0297171cf31b2577eeb9ae (diff)
parent6f604ab3995cb345aacf183a569589988aa3ad1f (diff)
downloadiced-e4ef29ef20724c3d1a4beff39ddfdaf6d45f9683.tar.gz
iced-e4ef29ef20724c3d1a4beff39ddfdaf6d45f9683.tar.bz2
iced-e4ef29ef20724c3d1a4beff39ddfdaf6d45f9683.zip
Merge pull request #1096 from pacmancoder/feat/wgpu-webgl
Experimental WebGL wgpu backend support
Diffstat (limited to '')
-rw-r--r--src/time.rs12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/time.rs b/src/time.rs
index b8432895..37d454ed 100644
--- a/src/time.rs
+++ b/src/time.rs
@@ -1,12 +1,4 @@
//! Listen and react to time.
-use crate::Subscription;
+pub use iced_core::time::{Duration, Instant};
-/// 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: std::time::Duration,
-) -> Subscription<std::time::Instant> {
- iced_futures::time::every(duration)
-}
+pub use iced_futures::backend::default::time::*;