Concurrent Data Processing in Elixir: Ch2 errata: page 92 (B 1)

The first handle_cast({:send, email}, state) does not update the state so the example will not work as described.

It’s missing:

state = %{state | emails: emails}

2 Likes

Thanks for reporting this @chriseyre2000. That’s definitely a mistake, I’ll fix this for the next ebook version :+1: