Finish docs on futures-mio

Also remove mio BufReader/BufWriter for now, they should come back shortly
though
This commit is contained in:
Alex Crichton
2016-08-01 17:41:58 -07:00
parent 7ffe72dc73
commit 5970203b21
7 changed files with 27 additions and 369 deletions
+4 -1
View File
@@ -111,7 +111,10 @@ impl Loop {
}
}
#[allow(missing_docs)]
/// Runs a future until completion, driving the event loop while we're
/// otherwise waiting for the future to complete.
///
/// Returns the value that the future resolves to.
pub fn run<F: Future>(&mut self, f: F) -> Result<F::Item, F::Error> {
let (tx_res, rx_res) = mpsc::channel();
let handle = self.handle();