Concurrent Data Processing in Elixir typo (31- 32):

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!

Glad to hear you’re enjoying the book Matt, and thanks for buying it!

Also thank you for reporting this. It will be fixed for the next beta version :+1:

1 Like