2020-08-23 08:45:52 -07:00
|
|
|
//! Synchronization primitives
|
|
|
|
|
|
|
|
|
|
mod cancellation_token;
|
2022-11-22 02:03:09 +11:00
|
|
|
pub use cancellation_token::{
|
2025-06-18 16:25:41 +08:00
|
|
|
guard::DropGuard, guard_ref::DropGuardRef, CancellationToken, WaitForCancellationFuture,
|
|
|
|
|
WaitForCancellationFutureOwned,
|
2022-11-22 02:03:09 +11:00
|
|
|
};
|
2025-07-29 18:09:13 +08:00
|
|
|
pub(crate) use cancellation_token::{RunUntilCancelledFuture, RunUntilCancelledFutureOwned};
|
2020-08-23 08:45:52 -07:00
|
|
|
|
2021-03-04 17:29:30 +01:00
|
|
|
mod mpsc;
|
2022-02-09 12:09:04 -05:00
|
|
|
pub use mpsc::{PollSendError, PollSender};
|
2021-03-04 17:29:30 +01:00
|
|
|
|
2021-01-20 09:53:31 +01:00
|
|
|
mod poll_semaphore;
|
|
|
|
|
pub use poll_semaphore::PollSemaphore;
|
2021-01-30 00:03:01 +01:00
|
|
|
|
|
|
|
|
mod reusable_box;
|
|
|
|
|
pub use reusable_box::ReusableBoxFuture;
|
2025-11-06 13:20:08 +02:00
|
|
|
|
|
|
|
|
#[cfg(test)]
|
|
|
|
|
mod tests;
|