Creating a Chat Server with async Rust and Tokio

th_rPosaBRxOUiSz1nA5mHv23KwwDNtWG1y

MP4 | Video: h264, 1920×1080 | Audio: AAC, 44.1 KHz, 2 Ch
Genre: eLearning | Language: English | Duration: 53m 43s | Size: 2.74 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.

资源下载此资源仅限VIP下载,请先
本站资源仅限VIP会员下载点击购买VIP会员

原创文章,作者:steven,如若转载,请注明出处:https://rr3d.cn/19894.html

赞 (0)
steven的头像steven
上一篇 2021年9月26日
下一篇 2021年9月26日

相关推荐

发表回复

登录后才能评论
分享本页
返回顶部