Skip to content

Commit ec12cd8

Browse files
committed
add experimental oneshot channel
The `oneshot` channel is gated under the `oneshot_channel` feature.
1 parent c9537a9 commit ec12cd8

File tree

2 files changed

+467
-0
lines changed

2 files changed

+467
-0
lines changed

library/std/src/sync/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@ pub use alloc_crate::sync::{Arc, Weak};
184184
#[unstable(feature = "mpmc_channel", issue = "126840")]
185185
pub mod mpmc;
186186
pub mod mpsc;
187+
#[unstable(feature = "oneshot_channel", issue = "143674")]
188+
pub mod oneshot;
187189

188190
pub(crate) mod once; // `pub(crate)` for the `sys::sync::once` implementations and `LazyLock`.
189191

0 commit comments

Comments
 (0)