Created
June 25, 2020 13:40
-
-
Save 05nelsonm/c708d9be38a07b46de612dd8959a9eea to your computer and use it in GitHub Desktop.
Revisions
-
05nelsonm created this gist
Jun 25, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,27 @@ Helpful Coroutine Resources (for me anyway) === - Good places to start - https://www.codementor.io/blog/kotlin-coroutines-6n53p8cbn1 - https://proandroiddev.com/async-operations-with-kotlin-coroutines-part-1-c51cc581ad33 - Great explanation of scopes, how to create/utilize them, as well as the use of `SupervisorJob` for working it into whatever lifecycle you're implementing coroutines in, and the use of newer extension properties (such as `viewModelScope`) that can be used in components that have them. - https://medium.com/androiddevelopers/easy-coroutines-in-android-viewmodelscope-25bffb605471 - Why creating custom scopes are important, and to avoid use of `GlobalScope` - https://medium.com/@elizarov/the-reason-to-avoid-globalscope-835337445abc - https://stackoverflow.com/questions/54335365/why-not-use-globalscope-launch/54351785#54351785 - Awesome explanation on `Job`s - https://proandroiddev.com/kotlin-coroutine-job-hierarchy-finish-cancel-and-fail-2d3d42a768a9 - Really great vid on using Jobs - https://www.youtube.com/watch?v=55W60o9uzVc - More on Jobs and the heirarchy with regard to scoping, coroutine context, parent/child relationships, and exceptions. - https://www.youtube.com/watch?v=w0kfnydnFWI - Getting into the `Flow`. - https://blog.mindorks.com/what-is-flow-in-kotlin-and-how-to-use-it-in-android-project - Getting into the `StateFlow`. - https://blog.mindorks.com/stateflow-apis-in-kotlin ## A hell of a project for use case examplse ;-D - https://github.com/LukasLechnerDev/Kotlin-Coroutine-Use-Cases-on-Android