mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-31 00:00:07 +02:00
co-authored by
Alice Ryhl
parent
67b171ac77
commit
970d4b754d
@@ -345,7 +345,7 @@ use std::sync::Arc;
|
|||||||
/// [`Semaphore::add_permits`] with a single permit to increment the countdown
|
/// [`Semaphore::add_permits`] with a single permit to increment the countdown
|
||||||
/// latch as they complete. For example:
|
/// latch as they complete. For example:
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```
|
||||||
/// use tokio::sync::Semaphore;
|
/// use tokio::sync::Semaphore;
|
||||||
/// use std::{future::Future, sync::Arc};
|
/// use std::{future::Future, sync::Arc};
|
||||||
///
|
///
|
||||||
|
|||||||
Reference in New Issue
Block a user