Title: Concurrent Data Processing in Elixir: typo (31-32)
I believe (page 31-32):
def handle_cast({:send, email}, state) do
.
.
{:noreply, state}
end
should be:
def handle_cast({:send, email}, state) do
.
.
{:noreply, %{state | emails: emails}}
end
otherwise the state is never updated. Very much enjoying the book btw!