mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-24 00:00:11 +02:00
This change removes all references to `Stream` from within the `tokio` crate and moves them into a new `tokio-stream` crate. Most types have had their `impl Stream` removed as well in-favor of their inherent methods. Closes #2870
19 lines
397 B
Rust
19 lines
397 B
Rust
macro_rules! cfg_time {
|
|
($($item:item)*) => {
|
|
$(
|
|
#[cfg(feature = "time")]
|
|
#[cfg_attr(docsrs, doc(cfg(feature = "time")))]
|
|
$item
|
|
)*
|
|
}
|
|
}
|
|
|
|
macro_rules! ready {
|
|
($e:expr $(,)?) => {
|
|
match $e {
|
|
std::task::Poll::Ready(t) => t,
|
|
std::task::Poll::Pending => return std::task::Poll::Pending,
|
|
}
|
|
};
|
|
}
|