diff options
author | Lizzy Fleckenstein <eliasfleckenstein@web.de> | 2023-02-18 03:03:40 +0100 |
---|---|---|
committer | Lizzy Fleckenstein <eliasfleckenstein@web.de> | 2023-02-18 03:05:06 +0100 |
commit | 718e8618544c4cdde78138655305eee7c08058ee (patch) | |
tree | bb578698c985ebf8c9601f325d1fc90dc0153e46 /src/lib.rs | |
parent | 88ff69e7a8e90a4fa3929fa173ed93e99b60f37c (diff) | |
download | mt_rudp-718e8618544c4cdde78138655305eee7c08058ee.tar.xz |
Don't spawn tasks
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 - }; - } -} |