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