1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
//! Wrappers for [tokio](https://docs.rs/tokio)'s channels that implement [`Stream`] for receivers //! and [`Sink`] for senders. //! //! [`Stream`]: trait@tokio_stream::Stream //! [`Sink`]: trait@async_sink::Sink #[cfg(feature = "alloc")] extern crate alloc; #[cfg(feature = "alloc")] pub mod mpsc; pub mod oneshot; #[cfg(feature = "alloc")] pub use mpsc::{channel, unbounded_channel};