3 ms·
I don't program Erlang, but discovering communicating sequential processes for multithreading was a revelation to me. I use it in Java/Kotlin almost every time
by cel1ne 10y ago
I don't program Erlang, but discovering communicating sequential processes for multithreading was a revelation to me.
I use it in Java/Kotlin almost every time I do something involving more than one thread.
Add a blocking-queue, define incoming messages, define outgoing messages and forget about it.