Android Developer Relations Engineer at Google. A fan of Kotlin since the 1.0 of the language. Lecturer at BME-VIK, teaching a standalone Kotlin course.
Compose and coroutines work great together, but there are certain patterns you need to avoid when combining them. In this session, we’ll look at some common pitfalls, detail why and how they cause problems, and see what patterns or APIs should be used instead.
Coroutines are embraced on Android as the tool to perform asynchronous operations and manage threading in your apps. Testing them requires some extra work and a solid understanding of coroutine concepts like scopes and dispatchers.
In this talk, we’ll cover the new guidance we have for testing coroutines on Android, using the latest available testing APIs introduced in kotlinx.coroutines 1.6. We'll go from the simplest cases all the way to Flows, look at Android-specific problems you might face, and learn best practices and patterns you can use in your tests.