mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-07 00:00:08 +02:00
sync: make TryAcquireError public (#3250)
The [`Semaphore::try_acquire`][1] method currently returns a private error type. [1]: https://docs.rs/tokio/0.3/tokio/sync/struct.Semaphore.html#method.try_acquire
This commit is contained in:
@@ -444,7 +444,7 @@ cfg_sync! {
|
|||||||
|
|
||||||
pub(crate) mod batch_semaphore;
|
pub(crate) mod batch_semaphore;
|
||||||
mod semaphore;
|
mod semaphore;
|
||||||
pub use semaphore::{Semaphore, SemaphorePermit, OwnedSemaphorePermit};
|
pub use semaphore::{Semaphore, SemaphorePermit, OwnedSemaphorePermit, TryAcquireError};
|
||||||
|
|
||||||
mod rwlock;
|
mod rwlock;
|
||||||
pub use rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard};
|
pub use rwlock::{RwLock, RwLockReadGuard, RwLockWriteGuard};
|
||||||
|
|||||||
Reference in New Issue
Block a user