Make Handle::wakeup private (#117)

The `Handle` type is intended to be used by end users of Tokio. The
wakeup functionlity is needed by executor implementations. It doesn't
make sense to put executor specific functionality on a type that is
intended for end users.
This commit is contained in:
Carl Lerche
2018-02-07 11:09:44 -08:00
committed by GitHub
parent c30fa62dda
commit c225b46b18
2 changed files with 1 additions and 44 deletions
+1 -1
View File
@@ -350,7 +350,7 @@ impl Handle {
/// after this method has been called. If the reactor is not currently
/// blocked in `turn`, then the next call to `turn` will not block and
/// return immediately.
pub fn wakeup(&self) {
fn wakeup(&self) {
if let Some(inner) = self.inner() {
inner.wakeup.set_readiness(mio::Ready::readable()).unwrap();
}