Surprise Me!

Multipart Kotlin Coroutines Course - E04 - Medium - Scopes in Server Side and Android 1/2

2025-02-26 3 Dailymotion

In this video we are discussing scopes. I will talk in this video about the GlobalScope in Kotlin coroutines, the coroutineScope, the supervisorScope, the MainScope and briefly discuss the viewModelScope and the lifecycleScope for android applications. The last two were initially meant to be part of this video, but because of its advance category, I decided to include them in a coming video. The idea of this video is to introduce Kotlin Coroutine Scopes for people who may be struggling to understand them and are trying to figure out what makes them different than the Kotlin Coroutinue Disptachers. This video will also illustratie interesting ways that we can use our Coroutine contexts and how to configure them. We are also going through the difference between the MainScope and Dispatchers.Main. These concepts are very important to understand and you'll surely have a better vision on what they are after this video. All of the examples are available on GitHub. See the links bellow for more info. As usual, make sure to stay tech, keep programming, be kind and have a good one everyone! <br /><br />--- <br /><br />Chapters: <br /><br />00:00:00 Start <br />00:00:19 Introduction <br />00:04:08 The GlobalScope <br />00:05:38 Video suggestions on Global Scope <br />00:06:13 Continuing on the GlobalScope <br />00:18:41 Briefly talking about structured concurrency <br />00:21:50 Video suggestions on the supervisorScope <br />00:22:09 The coroutineScope <br />00:32:14 The supervisorScope <br />00:38:59 Introduction to Android <br />00:39:11 The MainScope <br />00:49:36 Brief mention of the viewModelScope and the lifecycleScope for Android <br />00:50:34 End notes <br />00:52:01 See you in the next video! <br />00:53:26 End credits <br /><br />--- <br /><br />Source code: <br /><br />- https://github.com/jesperancinha/jeorg-kotlin-test-drives <br />- https://github.com/jesperancinha/matrix-anywhere-android <br /><br />--- <br /><br />Soundtrack: <br /><br />- https://soundcloud.com/joaoesperancinha/slow-guitar-4-jesprotech <br />- https://soundcloud.com/joaoesperancinha/jesprotech-guitar-loop-1 <br /><br />--- <br /><br />Related videos: <br /><br />- https://youtube.com/shorts/wqL_1imGhaY?feature=share <br />- https://youtube.com/shorts/JBWEJaxlVYY?feature=share <br />- https://youtu.be/CQXIuyxMD_I <br />- https://youtube.com/shorts/VIITIP4-WWU?feature=share <br />- https://youtube.com/shorts/vr8lVaF4EQw?feature=share <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 />- Bluesky - https://bsky.app/profile/jesperancinha.bsky.social <br />

Buy Now on CodeCanyon