You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
async-std/examples
Kevin Donahue 3db7631a7d create readme in examples directory 5 years ago
..
a-chat Fix compilation errors on latest nightly 5 years ago
README.md create readme in examples directory 5 years ago
hello-world.rs remove async_await feature gate 5 years ago
line-count.rs remove async_await feature gate 5 years ago
list-dir.rs Clean up the fs module and a few other places 5 years ago
logging.rs remove async_await feature gate 5 years ago
print-file.rs More robust file implementation 5 years ago
socket-timeouts.rs Fix compilation errors on latest nightly 5 years ago
stdin-echo.rs remove async_await feature gate 5 years ago
stdin-timeout.rs remove async_await feature gate 5 years ago
surf-web.rs remove async_await feature gate 5 years ago
task-local.rs remove async_await feature gate 5 years ago
task-name.rs remove async_await feature gate 5 years ago
tcp-client.rs remove async_await feature gate 5 years ago
tcp-echo.rs remove async_await feature gate 5 years ago
udp-client.rs remove async_await feature gate 5 years ago
udp-echo.rs remove async_await feature gate 5 years ago

README.md

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.