O'Reilly logo

Actors in Scala by Frank Sommers, Philipp Haller

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

2.1 Control flow and data flow

The designers of the actor programming model started out by defining suitable abstractions for program control flow in concurrent systems. Informally, control flow in a program refers to the choice a program makes about what instructions to execute next. Branching, switch and case statements, as well as making decisions about what to return from a method invocation are all examples of control flow. All but the most trivial programs include some form of control flow.

Developers of sequential programs would not consider control flow a problematic task: After all, we routinely write if, while, and for expressions without thinking too much about the implications of those basic programming constructs. Concurrency, however, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required