6 ms·
> Every time the loop runs, it will check the top of the mailbox (mailbox is last-in-first-out) for messages that match what we need and process them. Nope, er
by yetihehe 6y ago
> Every time the loop runs, it will check the top of the mailbox (mailbox is last-in-first-out) for messages that match what we need and process them.
Nope, erlang mailbox is fifo with filtering. When a process sends messages, they are delivered in the same order they were sent.
- yetihehe 6y agoThat sentence was fixed in the article and now reads: > Every time the loop runs, it will check from the bottom of the mailbox (in order they were received) for messages that match what we need and process them.