Best Practices for using Kotlin Coroutines in Android Development.How to avoid 5 common mistakes when using Kotlin Coroutines.Kotlin Coroutines Exception Handling explained.Kotlin Coroutines Fundamentals Playlist.Kotlin Flow on Android Basics Playlist.One returns the names of the most recent Android versions and the other one returns the features of a certain Every use case defines a certain behaviour of the Mock API. This lets you define how the API should behave.Įverything can be configured: http status codes, response data and delays. This project is using retrofit/okhttp together with a MockNetworkInterceptor. The ViewModels contain most of the interesting Coroutine-related code.Īctivities listen to LiveData or StateFlow events of the ViewModel and render received UiStates. □ Project SetupĮvery use case is using its own Activity and JetPack ViewModel. In the playground package you can play around with Coroutines and Flow examples that run directly on the JVM. You can quickly look up and play around with the different Coroutine and Flow Android implementations. This repository is intended to be a "Playground Project". □ Sample implementations for real-world Android use cases □ Learning Kotlin Coroutines and Flows for Android Development by Example Kotlin Coroutines and Flow - Use Cases on Android Exposing Flows in the ViewModel Author License README.md Perform expensive calculation on Main Thread without freezing the UI □ Flow Use Cases Description 1. Performance analysis of dispatchers, number of coroutines and yielding 17. Continue Coroutine execution when the user leaves the screen 15. Offload expensive calculation to several Coroutines 13. Offload expensive calculation to background thread 11. Network requests with timeout and retry 8. Perform variable amount of network requests 5. Perform several network requests concurrently 4. Perform two sequential network requests 3. Kotlin Coroutines and Flow - Use Cases on Android □ Project Setup □️ Related Videos ✍️ Related blog posts □ Online Course □ Sharing is Caring ⭐️ Coroutine Use Cases ⭐ Flow Use Cases □ Coroutine Use Cases Description 1.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |