#[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 RouterSender<T> = sync::mpsc::Sender<T>;
pub type RouterReceiver<T> = sync::mpsc::Receiver<T>;
pub fn router_channel<T>() -> (RouterSender<T>, RouterReceiver<T>) {
sync::mpsc::channel(64)
}
pub type SmallSender<T> = sync::mpsc::Sender<T>;
pub type SmallReceiver<T> = sync::mpsc::Receiver<T>;
pub fn small_channel<T>() -> (SmallSender<T>, SmallReceiver<T>) {
sync::mpsc::channel(1)
}
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()
}