flâneur — a map of the web's best reading

Channels | Tokio - An asynchronous Rust runtime

tokio.rs · 2,167 words · saved by 1 readers

Tokio is a runtime for writing reliable asynchronous applications with Rust. It provides async I/O, networking, scheduling, timers, and more.

Channels | Tokio - An asynchronous Rust runtime TABLE OF CONTENTS Tokio Tutorial Overview Setup Hello Tokio Spawning Shared state Channels I/O Framing Async in depth Select Streams Topics Bridging with sync code Graceful Shutdown Getting started with Tracing Next steps with Tracing Unit Testing Glossary API documentation Channels Now that we have learned a bit about concurrency with Tokio, let's apply this on the client side. Put the server code we wrote before into an explicit binary file: $ mkdir src/bin $ mv src/main.rs src/bin/server.rs and create a new binary file that will contain the cl

Explore this link on the map →

saved by

related reading