diff options
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 19 |
1 files changed, 2 insertions, 17 deletions
@@ -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 - }; - } -} |