Kotlin Coroutines: Deep Dive (Kotlin for Developers)
Book information
Description
Kotlin coroutines revolutionized JVM development, especially on Android and the backend. They let us easily make efficient and reliable multithreading. Its cutting-edge design and features are suited ideally for modern use cases. In this book, we will explore Kotlin coroutines - both built-in support and kotlinx.coroutines library. Table of Contents Introduction Part 1: Understanding Kotlin Coroutines Why Kotlin Coroutines? Sequence builder How does suspension work? Coroutines under the hood Coroutines: built-in support vs library Part 2: Kotlin Coroutines library Coroutine builders Coroutine context Jobs and awaiting children Cancellation Exception handling Coroutine scope functions Dispatchers Constructing a coroutine scope The problem with shared state Testing Kotlin Coroutines Part 3: Channel and Flow Channel Select Hot and cold data sources Flow introduction Understanding Flow Flow building Flow lifecycle functions Flow processing SharedFlow and StateFlow Testing flow Part 4: Kotlin Coroutines in practice Common use cases Recipes Using coroutines from other languages Launching coroutines vs. suspending functions Best practices The End
Similar books
Effective Kotlin: Best Practices
2024 · PDF
Kotlin Exercises
2024 · EPUB
Effective Kotlin
2019 · EPUB
Advanced Kotlin (Kotlin for Developers)
2023 · EPUB
Advanced Kotlin (Kotlin for Developers)
2023 · PDF
Kotlin Coroutines: Deep Dive (Kotlin for Developers)
RAR
Functional Kotlin by Marcin Moskała
RAR