4 ms·
And between CSP and elixir, which promotes synchronous message passing and which promotes the asynchronous/queue approach?
by BoiledCabbage 3y ago
And between CSP and elixir, which promotes synchronous message passing and which promotes the asynchronous/queue approach?
- Jtsummers 3y agoCSP communication blocks until both sides are ready for the communication. You can create a process which acts as a buffer so that an outputting process is able to communicate so long as the buffer has capacity (and if the buffer size is unbounded then it will never be blocked, at least as long as there is sufficient memory).