mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-28 12:10:37 +00:00
util: fix import path of CancellationToken in example code (#4520)
This commit is contained in:
parent
ff8befbc54
commit
503ae34cd3
@ -24,9 +24,9 @@ use guard::DropGuard;
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
/// ```ignore
|
||||
/// ```no_run
|
||||
/// use tokio::select;
|
||||
/// use tokio::scope::CancellationToken;
|
||||
/// use tokio_util::sync::CancellationToken;
|
||||
///
|
||||
/// #[tokio::main]
|
||||
/// async fn main() {
|
||||
@ -172,9 +172,9 @@ impl CancellationToken {
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
/// ```ignore
|
||||
/// ```no_run
|
||||
/// use tokio::select;
|
||||
/// use tokio::scope::CancellationToken;
|
||||
/// use tokio_util::sync::CancellationToken;
|
||||
///
|
||||
/// #[tokio::main]
|
||||
/// async fn main() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user