2 ms·
> some of the things messages are sent to are not actual processes (e.g. ports).
by masklinn 14y ago
> some of the things messages are sent to are not actual processes (e.g. ports).
- jlgreco 14y agoAh, 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.
- deleted 14y ago[deleted]