diff options
author | 2024-07-05 02:15:13 +0200 | |
---|---|---|
committer | 2024-07-05 02:16:45 +0200 | |
commit | 8bc49cd88653309f5abe8a38d5a4af36fcfea933 (patch) | |
tree | 6c205ff9964cec1d48934b7ff166532491a349c5 /futures/src/backend/native/tokio.rs | |
parent | e50aa03edc858d561992d8ca441aa063f273eeac (diff) | |
download | iced-8bc49cd88653309f5abe8a38d5a4af36fcfea933.tar.gz iced-8bc49cd88653309f5abe8a38d5a4af36fcfea933.tar.bz2 iced-8bc49cd88653309f5abe8a38d5a4af36fcfea933.zip |
Hide `Subscription` internals
.. and introduce `stream::channel` helper
Diffstat (limited to 'futures/src/backend/native/tokio.rs')
-rw-r--r-- | futures/src/backend/native/tokio.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/futures/src/backend/native/tokio.rs b/futures/src/backend/native/tokio.rs index df91d798..9dc3593d 100644 --- a/futures/src/backend/native/tokio.rs +++ b/futures/src/backend/native/tokio.rs @@ -31,7 +31,7 @@ pub mod time { pub fn every( duration: std::time::Duration, ) -> Subscription<std::time::Instant> { - Subscription::from_recipe(Every(duration)) + subscription::from_recipe(Every(duration)) } #[derive(Debug)] |