Rust concurrency is easy #coding #rustlang

preview_player
Показать описание
If you cortisol levels goes up every time you add concurrency to your rust program it might be time to try this:

Instead of wrapping everything with ArcMutex pointers, which could introduce deadlocks and crashes, try to avoid shared state by using channels.

There’s even a library that allows you to to do this with a few lines of codes, it is called actix and it powers actix web, one of the most popular web servers in rust.

I’ll cover more details about actors on a separate video so make sure to subscribe.
Рекомендации по теме