From 718e8618544c4cdde78138655305eee7c08058ee Mon Sep 17 00:00:00 2001 From: Lizzy Fleckenstein Date: Sat, 18 Feb 2023 03:03:40 +0100 Subject: Don't spawn tasks --- src/lib.rs | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index a02eb20..e7a8ebe 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,6 +1,6 @@ #![feature(cursor_remaining)] #![feature(hash_drain_filter)] -#![feature(once_cell)] + mod client; mod common; mod error; @@ -11,21 +11,6 @@ mod share; pub use client::*; pub use common::*; pub use error::*; -use recv::*; +pub use recv::*; pub use send::*; pub use share::*; -pub use ticker_mod::*; - -mod ticker_mod { - #[macro_export] - macro_rules! ticker { - ($duration:expr, $close:expr, $body:block) => { - let mut interval = tokio::time::interval($duration); - - while tokio::select!{ - _ = interval.tick() => true, - _ = $close.changed() => false, - } $body - }; - } -} -- cgit v1.2.3