#[cfg(feature = "std")]
use crate::{MpscReceiver, MpscSender, MpscSyncSender};
#[cfg(feature = "std")]
use std::sync::mpsc::{channel, sync_channel};
#[doc = crate::_tags!(concurrency namespace)]
#[doc = crate::_doc_location!("work/sync/mpsc")]
#[derive(Debug)]
pub struct Mpsc;
#[cfg(feature = "std")]
#[cfg_attr(nightly_doc, doc(cfg(feature = "std")))]
impl Mpsc {
#[must_use]
pub fn channel<T>() -> (MpscSender<T>, MpscReceiver<T>) {
channel()
}
#[must_use]
pub fn sync_channel<T>(bound: usize) -> (MpscSyncSender<T>, MpscReceiver<T>) {
sync_channel(bound)
}
}