Huh, it has been a while since I did async in Rust. I used Actix to build a multi-protocol game server for a toy project, and the only state staring needed went through the database.
I’ll have to play with async Rust some more. I’ve looked through a lot of async code, and while it looks gross, I haven’t actually written much myself to really get a feel for the ergonomics. For other projects, I’ve just used threads and mutexes, which has been plenty. The closest I’ve gotten was messing with GUIs, but that’s been mostly GTK or IMGUI, which have their own synchronization patterns.
@sugar_in_your_tea the channels in rust are very simple to use, but instead you have a bidirectional channel like go, you have a receiver and a sender, but it works very well.
Huh, it has been a while since I did async in Rust. I used Actix to build a multi-protocol game server for a toy project, and the only state staring needed went through the database.
I’ll have to play with async Rust some more. I’ve looked through a lot of async code, and while it looks gross, I haven’t actually written much myself to really get a feel for the ergonomics. For other projects, I’ve just used threads and mutexes, which has been plenty. The closest I’ve gotten was messing with GUIs, but that’s been mostly GTK or IMGUI, which have their own synchronization patterns.
So maybe it’s good enough as is.
@sugar_in_your_tea the channels in rust are very simple to use, but instead you have a bidirectional channel like go, you have a receiver and a sender, but it works very well.