Skip to content

Instantly share code, notes, and snippets.

View catron's full-sized avatar

Evgeniy catron

View GitHub Profile
@catron
catron / Flow
Created March 31, 2020 15:00
Kotlin flow
Asynchronous Data Loading With New Kotlin Flow
Yet another amazing operator, Flow, from coroutines in Kotlin
Siva Ganesh Kantamani
Siva Ganesh Kantamani
Jan 3 · 6 min read
Coroutines
When we call an asynchronous function like a service call, retrieving data from the database, reading files or anything, we need a callback so that we know that the operation is finished and we can resume the actual work like in mobiles updating the UI after receiving data from your servers.
Yup, that’s fine, but when in real-time, it won’t be that easy.