-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scheduler: remove mio eventloop #1691
Conversation
LGTM |
impl<T> Sender<T> for mpsc::SyncSender<T> { | ||
fn send(&self, t: T) -> Result<(), NotifyError<T>> { | ||
match mpsc::SyncSender::try_send(self, t) { | ||
Ok(()) => Ok(()), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any test to cover full and disconnected error?
name: &'static str, | ||
|
||
marker: PhantomData<T>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why marker here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To consume the generic type T.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…al shards (tikv#1691) Signed-off-by: hslam <[email protected]>
This pr simplify the logic of scheduler by removing the mio dependency.
SendCh
is also refactored in this pr, so it will be also helpful for introducing mio 0.6 later.@siddontang @disksing @zhangjinpeng1987 PTAL