[][src]Function async_std::io::stdout

pub fn stdout() -> Stdout

Constructs a new handle to the standard output of the current process.

This function is an async version of std::io::stdout.

Examples

use async_std::io;
use async_std::prelude::*;

let mut stdout = io::stdout();
stdout.write_all(b"Hello, world!").await?;