1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-06-27 06:09:02 +02:00

prepare rt 2.0.0-beta.2 release

This commit is contained in:
Rob Ede
2021-01-09 15:12:59 +00:00
parent f07d807707
commit 6edf9b8278
3 changed files with 14 additions and 4 deletions

View File

@ -7,7 +7,9 @@
use std::future::Future;
#[cfg(not(test))] // Work around for rust-lang/rust#62127
// Cannot define a main macro when compiled into test harness.
// Workaround for https://github.com/rust-lang/rust/issues/62127.
#[cfg(all(feature = "macros", not(test)))]
pub use actix_macros::{main, test};
mod arbiter;
@ -64,7 +66,7 @@ pub mod time {
pub use tokio::time::{timeout, Timeout};
}
/// task management.
/// Blocking task management.
pub mod task {
pub use tokio::task::{spawn_blocking, yield_now, JoinHandle};
}