Suspending over Views

1 · Chris Banes · Dec. 2, 2019, 9:18 a.m.
Summary
Kotlin Coroutines allow us to model asynchronous problems like synchronous code. That’s great, but most usage seems to concentrate on I/O tasks and concurrent operations. Coroutines are great at modelling problems which work across threads, but can also model asynchronous problems on the same thread. There’s one place which I think really benefits from this, and that’s working with the Android view system. Android views 💘 callbacks The Android view......