Home
:
Book details
:
Book description
Description of
Kotlin Coroutines Deep Dive, 2nd Editoin
Why do you want to learn about Kotlin Coroutines? I often ask my workshop attendees this question. “Because they’re cool” and “Because everyone is talking about them” are common answers. Then, when I dig deeper, I hear responses like “because they are lighter threads”, “because they are easier than RxJava”, or “because they enable concurrency while maintaining an imperative code style.” However, coroutines are much more than that. They are the holy grail of concurrency. As a concept, they have been known in Computer Science since the 1960s, but in mainstream programming, they have only been used in a very limited form (such as async/await). This changed with Golang, which introduced much more generalpurpose coroutines. Kotlin built on that, creating what I believe is currently the most powerful and practical implementation of this idea. The importance of concurrency is growing, but traditional techniques are not enough. Current trends suggest that coroutines are the direction in which our industry is clearly heading, and Kotlin Coroutines represent a significant step forward. Let me introduce them to you, along with examples of how well they handle common use cases. I hope you will have a lot of fun reading this book. Who is this book for? As a developer experienced in both backend and Android, I primarily focus on these two perspectives in this book. These are currently the two major industry applications of Kotlin, and it’s evident that coroutines were largely designed to suit these use cases well?. So, you might say that this book is mainly designed for Android and backend developers, but it should be just as useful for other developers using Kotlin. This book assumes that readers know Kotlin well. If you do not, I recommend starting with my other book, Kotlin Essentials. ?Google’s Android team cooperated in designing and creating some features we will present in this book.