|
|
|
|
|
by _Codemonkeyism
2876 days ago
|
|
Wasn't there a language where every call was async? Instead of async ... A/returing Future[A] it did/would return A from method calls. If it didn't exist, one can imagine one. A.x = 3 would be wrapped in A.map(_.x = 3) etc. So you write code that would be executed when you finally await a value. No more red/blue world. Would probably need coroutines instead of threads for executing. |
|
It is just one of the lots of concurrency behaviors available in libraries. Also, parallelism is "free" on pure code.