Shuffle around the sync/future modules

This commit is contained in:
Tim Kuehn
2016-12-26 16:02:44 -05:00
parent 18cbbe5b15
commit 5dbfa99d0b
5 changed files with 24 additions and 15 deletions

View File

@@ -86,8 +86,6 @@ pub extern crate tokio_proto;
#[doc(hidden)]
pub extern crate tokio_service;
pub use client::{sync, future};
#[doc(hidden)]
pub use client::Client;
#[doc(hidden)]
@@ -115,11 +113,21 @@ mod protocol;
/// Provides a few different error types.
mod errors;
use tokio_core::reactor::Remote;
lazy_static! {
/// The `Remote` for the default reactor core.
pub static ref REMOTE: Remote = {
util::spawn_core()
};
/// Utility specific to synchronous implementation.
pub mod sync {
pub use client::sync::*;
}
/// Utility specific to futures implementation.
pub mod future {
pub use client::future::*;
use tokio_core::reactor::Remote;
use util;
lazy_static! {
/// The `Remote` for the default reactor core.
pub static ref REMOTE: Remote = {
util::spawn_core()
};
}
}