Skip to Content
Mastering Functional Programming
book

Mastering Functional Programming

by Anatolii Kmetiuk
August 2018
Intermediate to advanced
380 pages
10h 2m
English
Packt Publishing
Content preview from Mastering Functional Programming

Task specification

Imagine we need to have multiple actors that all output a greeting to a given name to the log. Imagine also that we need to abstract away the fact that there are multiple actors in the system from the end user. We are going to do so by creating a single supervising actor that is going to be in charge of the execution of all its child actors. The child actors will be the actors that output the greeting message to the log, and the parent actor will be a manager that represents them.

The protocol is going to be as follows. First, create a GreetingsManager actor. Then, you are going to send a SpawnGreeters message to spawn a number of greeter actors parameterized by the number of greeters required. These spawned greeters must ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Functional Programming

Learning Functional Programming

Jack Widman

Publisher Resources

ISBN: 9781788620796Supplemental Content