mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-29 00:00:11 +02:00
chore: use ready macro from futures-core (#1300)
This commit is contained in:
committed by
Carl Lerche
parent
ca708d6d87
commit
83273b8b50
@@ -1,6 +1,7 @@
|
||||
//use crate::split::{ReadHalf, WriteHalf};
|
||||
//use crate::{framed, split, AsyncWrite};
|
||||
use bytes::BufMut;
|
||||
use futures_core::ready;
|
||||
use std::io;
|
||||
use std::ops::DerefMut;
|
||||
use std::pin::Pin;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
//use crate::AsyncRead;
|
||||
use bytes::Buf;
|
||||
use futures_core::ready;
|
||||
use std::io;
|
||||
use std::ops::DerefMut;
|
||||
use std::pin::Pin;
|
||||
|
||||
@@ -12,15 +12,6 @@
|
||||
//! [found online]: https://tokio.rs/docs/
|
||||
//! [low level details]: https://tokio.rs/docs/going-deeper-tokio/core-low-level/
|
||||
|
||||
macro_rules! ready {
|
||||
($e:expr) => {
|
||||
match $e {
|
||||
::std::task::Poll::Ready(t) => t,
|
||||
::std::task::Poll::Pending => return ::std::task::Poll::Pending,
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
mod async_read;
|
||||
mod async_write;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user