Surprise Me!

Multipart Kotlin Coroutines Course - E02 - Pre - Medium 1/2

2025-02-12 3 Dailymotion

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! <br /><br />--- <br /><br />Chapters: <br /><br />00:00:00 Guitar Intro <br />00:00:16 Intro <br />00:05:09 Part I - Suspend Functions <br />00:20:01 Suspend Functions in the drawing board without yield <br />00:24:20 Suspend Functions in the drawing board with yield <br />00:29:20 suspendCoroutine <br />00:47:55 suspendCoroutine in the drawing board <br />00:56:00 Part II - withContext and contexts <br />00:59:10 Dispatchers.Default Example <br />01:10:35 Dispatchers.IO Example <br />01:15:32 Conclusion <br />01:21:43 See you in the next video! <br />01:22:48 Ending credits playing the guitar <br />01:23:25 Disclaimer <br /><br />--- <br /><br />Related videos: <br /><br />- https://youtu.be/DYTbVcGZbH8 <br />- https://youtu.be/LyAOF37cJ-c <br />- https://youtu.be/SNocP3qWOHs <br />- https://youtu.be/7UB7zE3E-f0 <br />- https://youtu.be/UMo64YpvlRk <br />- https://youtu.be/oPGWHVsf-j0 <br />- https://youtu.be/w4kkcz1gJkQ <br />- https://youtu.be/ZTuXgNE61Xg <br /><br />--- <br /><br />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. <br /><br />--- <br /><br />All my work and personal interests are also discoverable on other different sites: <br /><br />- My Website - https://joaofilipesabinoesperancinha.nl/ <br />- Reddit - https://www.reddit.com/user/jesperancinha <br />- Credly - https://www.credly.com/users/joao-esperancinha/badges <br />- Pinterest - https://nl.pinterest.com/jesperancinha/ <br />- Facebook - https://www.facebook.com/joaofisaes/ <br />- Spotify - https://open.spotify.com/user/jlnozkcomrxgsaip7yvffpqqm <br />- Daily Motion - https://www.dailymotion.com/jofisaes <br />--- <br /><br />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. <br /><br />If you want to discover more about my open-source work please visit me on GitHub at: <br /><br />- GitHub - https://github.com/jesperancinha

Buy Now on CodeCanyon