4 ms·
It's the only real solution if you need tens of thousands of concurrent tasks. Real threads use too much memory.
by 0x1ceb00da 2y ago
It's the only real solution if you need tens of thousands of concurrent tasks. Real threads use too much memory.
- smw 2y agoOr you use something like goroutines or Elixir processes where green threads are preemptively scheduled.
- worik 2y agoThat is a false dichotomy. There are other options than async/await and threads. In my heart that is my main objection to async/await in Rust. It has "poisoned the well" for asynchronous programming. Where people think it is async/await or threads We have been doing asynchronous programming for many decades.