mirror of
https://github.com/async-rs/async-std.git
synced 2025-11-09 04:56:40 +00:00
| .. | ||
| a-chat | ||
| hello-world.rs | ||
| line-count.rs | ||
| list-dir.rs | ||
| logging.rs | ||
| print-file.rs | ||
| README.md | ||
| socket-timeouts.rs | ||
| stdin-echo.rs | ||
| stdin-timeout.rs | ||
| surf-web.rs | ||
| task-local.rs | ||
| task-name.rs | ||
| tcp-client.rs | ||
| tcp-echo.rs | ||
| udp-client.rs | ||
| udp-echo.rs | ||
async-std Examples
This directory contains example code that makes use of async-std.
Each example can be run from the command line.
For example, Hello World can be run by running the following:
cargo run --example hello-world
Spawns a task that says hello.
Counts the number of lines in a file given as an argument.
cargo run --example line-count -- ./Cargo.toml
Lists files in a directory given as an argument.