mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-27 00:00:12 +02:00
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.
This commit is contained in:
@@ -259,3 +259,6 @@ async_assert_fn!(tokio::time::timeout_at(Instant, BoxFutureSync<()>): Send & Syn
|
||||
async_assert_fn!(tokio::time::timeout_at(Instant, BoxFutureSend<()>): Send & !Sync);
|
||||
async_assert_fn!(tokio::time::timeout_at(Instant, BoxFuture<()>): !Send & !Sync);
|
||||
async_assert_fn!(tokio::time::Interval::tick(_): Send & Sync);
|
||||
|
||||
#[cfg(tokio_unstable)]
|
||||
assert_value!(tokio::sync::CancellationToken: Send & Sync);
|
||||
|
||||
Reference in New Issue
Block a user