Автор: Mark L. Murphy
Издательство: CommonsWare
Год: 2021
Формат: PDF, EPUB, MOBI
Страниц: 244
Размер: 10 Mb
Язык: English
Coroutines are an important addition to the world of Kotlin.
Coroutines offer a first-class reactive programming approach, tightly integrated with the language itself. Coroutines help simplify multi-threaded development, allowing you to retain a “normal” imperative sort of programming model while still designating certain code sections to run on alternative thread pools. Beyond that, flows and channels let you model data streams while retaining the same multi-threaded characteristics.
This book is designed to help you get “spun up” on coroutines and how they can be applied in your projects.
Most of the sample code from the book is available in the Klassbook, so you can try running it in your Web browser. Some Android samples are available via GitLab repositories.
Right now, this book is in an early “beta” state, but it covers most of basics of coroutines.