2026-03-28 01:14 UTC
@Elizafox@treehouse.systems@astolfo.social @angelthorns@social.treehouse.systems yes, a loop with a select, spawning tasks for accepted connections, putting the handles into a JoinSet. A similar pattern will suffice for the channels
If you used Golang channels it will feel familiar
In Rust it can also be augmented with Stream for "async iterators"
It's actually kinda rare to need locks in application code in Rust
Replies (1)
-
@natty@astolfo.social 2026-03-28 01:15
@Elizafox@treehouse.systems@astolfo.social @angelthorns@social.treehouse.systems It will look more like a state machine than systems code, but that's kinda the point of using async