Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Ah, fair enough. I don't know erlang. Can a process have multiple distinct channels it receives on?


Nope, 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.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: