Learn how to implement coroutines in a real-world example of an Android application, with structured layers and decoupled dependencies. You'll see how to test coroutines, handle errors, and structure concurrency in a clean and stable way.
Who is this for?
This course is for Android developers who have heard about coroutines, or have tried writing concurrency code using coroutines, but want to learn more about advanced usage in real-world examples. This is also for people who understand coroutines but want to learn the best practices of using coroutines.
It expects you to be familiar with Android Studio, Kotlin, and the basics of using Retrofit and Room in Android. Familiarity with architectural patterns such as the MVP, or MVVM is helpful, but not crucial to this course. Knowledge about Mockito and JUnit4 is required, for the second part of the course.
The theoretical computer science background behind coroutines.
Implementing coroutines to replace callbacks.
Coroutine Jobs and their lifecycle.
CoroutineScope and binding coroutines to lifecycle-aware components.
Writing explicit and idiomatic concurrency code.
Context switching in coroutines in a clean way, decoupling and keeping implementation details from high-level components.
Basic and custom exception handling in coroutines.
Wrapping data and exceptions from coroutines to a state-machine result.
Logging coroutine threads and information.
Testing coroutines using the JUnit framework.
Dealing with delays and time logic in coroutine tests.
Write your comment!
Access Permission Error
You do not have access to this product!
To download this product, follow these steps:
Please subscribe to the One Day VIP or higher plan. (Please click here to upgrade your account)