#[cfg(feature = "std")]
use tokio::sync;
#[cfg(not(feature = "std"))]
use crate::tokio::sync;
pub type MessageSender<T> = sync::mpsc::Sender<T>;
pub type MessageReceiver<T> = sync::mpsc::Receiver<T>;
pub fn message_channel<T>() -> (MessageSender<T>, MessageReceiver<T>) {
sync::mpsc::channel(8)
}
pub type OneshotSender<T> = sync::oneshot::Sender<T>;
pub type OneshotReceiver<T> = sync::oneshot::Receiver<T>;
pub fn oneshot_channel<T>() -> (OneshotSender<T>, OneshotReceiver<T>) {
sync::oneshot::channel()
}