Tags
Language
Tags
April 2024
Su Mo Tu We Th Fr Sa
31 1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 1 2 3 4

Creating a Chat Server with async Rust and Tokio

Posted By: sammoh
Creating a Chat Server with async Rust and Tokio

Creating a Chat Server with async Rust and Tokio
MP4 | Video: AVC 1920 x 1080 | Audio: AAC 48 Khz 2ch | Duration: 00:53:43 | 2.88 GB

Building a chat server is a great way to learn the Tokio library because a chat server forces you to think about concurrent IO, which is the core purpose of Tokio. Lily demonstrates how you can spawn background tasks to manage independent network streams, and use tokio::select! to concurrently poll tasks which require a shared state. The lessons learned here can be applied generally to all kinds of asynchronous coding challenges in Rust.
From the author of Refactoring to Rust.