macro_rules! tokio_oneshot_class {
(Sender<$T:ty>) => { ... };
(SendError) => { ... };
(RecvError) => { ... };
(create::<$T:ty>()) => { ... };
(send::<$T:ty>($channel:expr, $msg:expr)) => { ... };
(recv::<$T:ty>($channel:expr)) => { ... };
(send_async::<$T:ty>($channel:expr, $msg:expr)) => { ... };
(recv_async::<$T:ty>($channel:expr)) => { ... };
}Available on crate feature
tokio only.Expand description
Channel class for using tokio::sync::oneshot::channel() to deliver return values. Supports both sync and async.