4 ms·
Ah, fair enough. I don't know erlang. Can a process have multiple distinct channels it receives on?
by jlgreco 14y ago
Ah, fair enough. I don't know erlang. Can a process have multiple distinct channels it receives on?
- masklinn 14y agoNope, each process has a single mailbox. On the other hand, processes don't have to go through their mailbox sequentially, they can prioritize messages (through pattern matching) and handle these first even if they are the last message in the mailbox (it's called a "selective receive"), so you get the same feature trivially by tagging messages instead of sending a message to a different channel.