Kotlin Coroutines Deep Dive
Kotlin Coroutines Deep Dive
Opis publikacji
Kotlin coroutines have revolutionized JVM development, especially on Android and the backend, as they let us easily implement efficient and reliable multithreading. Their cutting-edge design and features are ideally suited to modern use cases. In this book,we explore how Kotlin coroutines work and how we can use them to improve our applications – using both the built-in support and the kotlinx.coroutines library. About the book This is a practical book. It shows everything with examples and focuses on real-life use cases. As this technology is already widely used on Android and backend applications, we will see how we can use it there and what the best practices are. Who this book is for This book is for Kotlin developers who want to understand Kotlin Coroutines and learn to use them in real-life projects in accordance with best practices. The book focuses on backend and Android use cases, but it also presents knowledge that can be used on other platforms. Wha...
Kotlin coroutines have revolutionized JVM development, especially on Android and the backend, as they let us easily implement efficient and reliable multithreading. Their cutting-edge design and features are ideally suited to modern use cases. In this book, we explore how Kotlin coroutines work and how we can use them to improve our applications – using both the built-in support and the kotlinx.coroutines library. About the bookThis is a practical book. It shows everything with examples and focuses on real-life use cases. As this technology is already widely used on Android and backend applications, we will see how we can use it there and what the best practices are.Who this book is forThis book is for Kotlin developers who want to understand Kotlin Coroutines and learn to use them in real-life projects in accordance with best practices. The book focuses on backend and Android use cases, but it also presents knowledge that can be used on other platforms. What is coveredThis book focuses on Kotlin Coroutines' features, including: how suspend function works, starting, awaiting, and cancelling coroutines, basic and custom coroutine contexts, dispatchers, how structured concurrency works, exceptions handling with coroutines, testing coroutines, starting scope, best practices for using coroutines in modern projects, using channels and flow, flow processing functions, testing flow, best practices for using flow in modern projects, review of the essential use cases for Kotlin Coroutines.