Skip to Main Content
Kotlin Design Patterns and Best Practices - Third Edition
book

Kotlin Design Patterns and Best Practices - Third Edition

by Alexey Soshin
April 2024
Intermediate to advanced content levelIntermediate to advanced
474 pages
9h 39m
English
Packt Publishing
Content preview from Kotlin Design Patterns and Best Practices - Third Edition

7

Controlling the Data Flow

Having discussed coroutines in the previous chapter, we will now broaden our exploration to include features that enhance communication and data handling across different coroutines. This chapter focuses on further important aspects of Kotlin’s concurrency toolkit, namely channels and flows. We will also look into higher-order functions for collections, noting their APIs’ similarity to those of channels and flows.

Building on the foundation laid by our discussion of functional programming, this chapter will emphasize the use of small, reusable, and composable functions. These functions enable us to write expressive code that clearly outlines what we want to achieve, rather than focusing on the steps needed to accomplish ...

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

Kotlin Design Patterns and Best Practices - Second Edition

Kotlin Design Patterns and Best Practices - Second Edition

Alexey Soshin
Programming Kotlin

Programming Kotlin

Venkat Subramaniam
Kotlin in Action

Kotlin in Action

Svetlana Isakova, Dmitry Jemerov

Publisher Resources

ISBN: 9781805127765Supplemental Content