AsyncRead/AsyncWrite stdin/stdout for Tokio
Documentation - more description there
```rust let mut core = tokio_core::reactor::Core::new()?;
let stdin = tokiostdinstdout::stdin(0); let stdout = tokiostdinstdout::stdout(0);
core.run(tokio_io::io::copy(stdin, stdout))?;
```
loop.rs
- Write hello ten timesline-by-line.rs
- Convert all input text to ASCII upper case, line by line. This example also demonstrates usage of tokio-codec and various modes of starting Tokio programs (multithreaded, singlethreaded).Not much related to tokio-stdin-stdout, but there are some async fn
examples runnable by cargo script
.
They require nightly Rust.