Skip to content

Ch-05 Correction in Listing 5.12 (todo_server.ex) #24

@noslav

Description

@noslav

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions