We have another talk from flatMap Oslo 2018 for you, this is from Fabio Labella speaking about Declarative Control Flow with Fs2 Stream. Fabio Labella is a Senior Software Engineer based in Edinburgh, UK, working in Scala in the financial industry, he also actively participates in Open Source (as SystemFw): He is one of the maintainers of fs2, and a contributor to cats, shapeless, http4s and most of the other libraries in the Scala FP ecosystem. Fabio has a passion for helping people master advanced concepts so contact him on Gitter if you have a question.
"fs2 is a purely functional streaming library, with support for concurrent and nondeterministic merging of arbitrary streams. Concurrency support means that we can use Stream not only to process data in constant memory, but also as a very general abstraction for control flow: whilst IO gives us an excellent model for a single effectfull action, assembling behaviour with it often has a very imperative flavour (pure, but still imperative). This talk will introduce fs2 combinators by example, and will hopefully show how we can model control flow in a declarative, high level, composable fashion. In particular, we will focus on concurrent combinators."