You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Again, this is a synthesis of techniques you’ve seen previously. You send a message and wait for the response. In the corresponding process_message/2 clause, you delegate to TodoList, and then you send the response and return the unchanged to-do list. This is needed because loop/2 takes the result of process_message/2 as the new state.
In the above paragraph, loop/2 should be replaced with loop/1 as there is no loop function in this module with an arity of 2.
The text was updated successfully, but these errors were encountered:
Again, this is a synthesis of techniques you’ve seen previously. You send a message and wait for the response. In the corresponding
process_message/2
clause, you delegate toTodoList
, and then you send the response and return the unchanged to-do list. This is needed becauseloop/2
takes the result ofprocess_message/2
as the new state.In the above paragraph,
loop/2
should be replaced withloop/1
as there is no loop function in this module with an arity of 2.The text was updated successfully, but these errors were encountered: