Open joshring opened 1 month ago
I would say that there is no general solution, and trying to find general solutions are doomed to failure.
What we should / can do is to provide different library features, with varying degrees of control and behaviour. For example, we might provide different kinds of thread pools, event handlers/listeners etc. These should come from proven solutions.
EVERYONE wants to solve concurrency, but what people tend to forget is that there will be no on-size-fits-all solution.
Let's instead focus on providing good niche solutions and good libraries to support those solutions and others that people might want to create.
flexible syntax to allow you to make the trade-offs appropriate to your use-case. Customise your own scheduler, with options suitable to your use-case.
I think we agree, let's find some suitable schedulers we can borrow from
Async Design Problems
Coroutines
The General Solution Proposal
TODO: