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!
---
Chapters:
00:00:00 Start
00:00:19 Introduction
00:04:08 The GlobalScope
00:05:38 Video suggestions on Global Scope
00:06:13 Continuing on the GlobalScope
00:18:41 Briefly talking about structured concurrency
00:21:50 Video suggestions on the supervisorScope
00:22:09 The coroutineScope
00:32:14 The supervisorScope
00:38:59 Introduction to Android
00:39:11 The MainScope
00:49:36 Brief mention of the viewModelScope and the lifecycleScope for Android
00:50:34 End notes
00:52:01 See you in the next video!
00:53:26 End credits
---
Source code:
- https://github.com/jesperancinha/jeorg-kotlin-test-drives
- https://github.com/jesperancinha/matrix-anywhere-android
---
Soundtrack:
- https://soundcloud.com/joaoesperancinha/slow-guitar-4-jesprotech
- https://soundcloud.com/joaoesperancinha/jesprotech-guitar-loop-1
---
Related videos:
- https://youtube.com/shorts/wqL_1imGhaY?feature=share
- https://youtube.com/shorts/JBWEJaxlVYY?feature=share
- https://youtu.be/CQXIuyxMD_I
- https://youtube.com/shorts/VIITIP4-WWU?feature=share
- https://youtube.com/shorts/vr8lVaF4EQw?feature=share
---
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:
- My Website - https://joaofilipesabinoesperancinha.nl/
- Reddit - https://www.reddit.com/user/jesperancinha
- Credly - https://www.credly.com/users/joao-esperancinha/badges
- Pinterest - https://nl.pinterest.com/jesperancinha/
- Facebook - https://www.facebook.com/joaofisaes/
- Spotify - https://open.spotify.com/user/jlnozkcomrxgsaip7yvffpqqm
- Daily Motion - https://www.dailymotion.com/jofisaes
- Bluesky - https://bsky.app/profile/jesperancinha.bsky.social
---
Chapters:
00:00:00 Start
00:00:19 Introduction
00:04:08 The GlobalScope
00:05:38 Video suggestions on Global Scope
00:06:13 Continuing on the GlobalScope
00:18:41 Briefly talking about structured concurrency
00:21:50 Video suggestions on the supervisorScope
00:22:09 The coroutineScope
00:32:14 The supervisorScope
00:38:59 Introduction to Android
00:39:11 The MainScope
00:49:36 Brief mention of the viewModelScope and the lifecycleScope for Android
00:50:34 End notes
00:52:01 See you in the next video!
00:53:26 End credits
---
Source code:
- https://github.com/jesperancinha/jeorg-kotlin-test-drives
- https://github.com/jesperancinha/matrix-anywhere-android
---
Soundtrack:
- https://soundcloud.com/joaoesperancinha/slow-guitar-4-jesprotech
- https://soundcloud.com/joaoesperancinha/jesprotech-guitar-loop-1
---
Related videos:
- https://youtube.com/shorts/wqL_1imGhaY?feature=share
- https://youtube.com/shorts/JBWEJaxlVYY?feature=share
- https://youtu.be/CQXIuyxMD_I
- https://youtube.com/shorts/VIITIP4-WWU?feature=share
- https://youtube.com/shorts/vr8lVaF4EQw?feature=share
---
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:
- My Website - https://joaofilipesabinoesperancinha.nl/
- Reddit - https://www.reddit.com/user/jesperancinha
- Credly - https://www.credly.com/users/joao-esperancinha/badges
- Pinterest - https://nl.pinterest.com/jesperancinha/
- Facebook - https://www.facebook.com/joaofisaes/
- Spotify - https://open.spotify.com/user/jlnozkcomrxgsaip7yvffpqqm
- Daily Motion - https://www.dailymotion.com/jofisaes
- Bluesky - https://bsky.app/profile/jesperancinha.bsky.social
Category
🤖
Tech