This is the second video that covers coroutines. It is meant for people that are still struggling a bit with coroutines, but already understand something about how they work and at least understand the clear distinction between threads, light-weight primitives and light-weight threads. In this video I cover many aspects of coroutines, namely what does it mean to suspend a function and then I talk a bit about coroutine contexts. Coroutine contexts are fairly broad and that will be the discussion in the follow-up video. In this video you'll see me playing the guitar, go through examples and go through the drawing board to exemplify and visualize how it all works running in a single thread so that it becomes easier to mentally map when more than one threads are available. Stay tech, keep programming, be kind and have a good one!
---
Chapters:
00:00:00 Guitar Intro 00:00:16 Intro 00:05:09 Part I - Suspend Functions 00:20:01 Suspend Functions in the drawing board without yield 00:24:20 Suspend Functions in the drawing board with yield 00:29:20 suspendCoroutine 00:47:55 suspendCoroutine in the drawing board 00:56:00 Part II - withContext and contexts 00:59:10 Dispatchers.Default Example 01:10:35 Dispatchers.IO Example 01:15:32 Conclusion 01:21:43 See you in the next video! 01:22:48 Ending credits playing the guitar 01:23:25 Disclaimer
As a short disclaimer, I'd like to mention that I'm not associated or affiliated with any of the brands eventually shown, displayed, or mentioned in this video.
---
All my work and personal interests are also discoverable on other different sites:
If you have any questions about this video please put a comment in the comment section below and I will be more than happy to help you or discuss any related topic you'd like to discuss.
If you want to discover more about my open-source work please visit me on GitHub at: