1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-01-18 20:01:48 +01:00

add actix-rt::task (#245)

This commit is contained in:
fakeshadow 2021-01-04 02:16:57 +08:00 committed by GitHub
parent 147c4f4f2c
commit a1982bdbad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 1 deletions

View File

@ -1,7 +1,9 @@
# Changes
## Unreleased - 2021-xx-xx
* Add `task` mod with re-export of `tokio::task::{spawn_blocking, yield_now, JoinHandle}` [#245]
[#245]: https://github.com/actix/actix-net/pull/245
## 2.0.0-beta.1 - 2020-12-28
### Added

View File

@ -18,4 +18,4 @@ path = "src/lib.rs"
[dependencies]
actix-macros = "0.1.0"
tokio = { version = "1", features = ["rt", "net", "signal", "sync", "time"] }
tokio = { version = "1", features = ["rt", "net", "parking_lot", "signal", "sync", "time"] }

View File

@ -63,3 +63,8 @@ pub mod time {
pub use tokio::time::{sleep, sleep_until, Sleep};
pub use tokio::time::{timeout, Timeout};
}
/// task management.
pub mod task {
pub use tokio::task::{spawn_blocking, yield_now, JoinHandle};
}