diff options
author | Carl Lerche <me@carllerche.com> | 2020-05-03 12:35:47 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-03 12:35:47 -0700 |
commit | 264ae3bdb22004609de45b67e2890081bb47e5b2 (patch) | |
tree | c9f6005fef1c68de7331a98be3d18e2c112400e6 /tokio/src/sync/mod.rs | |
parent | 187af2e6a323be4193c82ad95f9aa32d2ae16869 (diff) |
sync: move CancellationToken tests (#2477)
In preparation of work on `CancellationToken` internals, the tests are
moved into `tests/` and are updated to not depend on internals.
Diffstat (limited to 'tokio/src/sync/mod.rs')
-rw-r--r-- | tokio/src/sync/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tokio/src/sync/mod.rs b/tokio/src/sync/mod.rs index b2c66e44..e558634f 100644 --- a/tokio/src/sync/mod.rs +++ b/tokio/src/sync/mod.rs @@ -425,10 +425,10 @@ cfg_sync! { pub mod broadcast; - #[cfg(tokio_unstable)] - mod cancellation_token; - #[cfg(tokio_unstable)] - pub use cancellation_token::{CancellationToken, WaitForCancellationFuture}; + cfg_unstable! { + mod cancellation_token; + pub use cancellation_token::{CancellationToken, WaitForCancellationFuture}; + } pub mod mpsc; |