mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-23 00:00:10 +02:00
Finish docs on futures-mio
Also remove mio BufReader/BufWriter for now, they should come back shortly though
This commit is contained in:
+4
-1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user