←back to thread

100 points 0x1997 | 1 comments | | HN request time: 0.198s | source
Show context
efskap ◴[] No.45789798[source]
Using stuff like this, does it make sense to use Rust in a golang-style where instead of async and its function colouring, you spawn coroutines and synchronize over channels?
replies(2): >>45789835 #>>45791783 #
1. mamcx ◴[] No.45791783[source]
If you are more like "parallel" than "async" totally yes!

here "parallel" is used in the most broad sense where you have (probably unrelated) tasks that are mostly independent for each other and run to completion. In that case "async" is an anti-pattern. So if you work more process-based that switch-based go!