Kotlin Coroutines Beginner Example (Android)

  Рет қаралды 159,023

CodingWithMitch

CodingWithMitch

Күн бұрын

High quality programming courses: codingwithmitc...
In this video I take you through your first kotlin coroutines example.
If you are complete beginner when it comes to coroutines and want to see what they're all about, this is the video for you.
The main goal of coroutines is to "simplify asynchronous work by getting rid of callbacks." Coroutines are NOT threads. I like to think of coroutines as JOBS. And each "job" may contain "child jobs". Jobs that can run in any thread. Many coroutines can run in a single thread at once.
They're kind of "like" threads because you can start them up and do work asynchronously, but they aren't threads. Many coroutines can exist and be running in a single thread.
The main dispatchers for building coroutines is:
1) Default (CPU intensive work)
2) Main (UI Interactions)
3) IO (Input/output. ex: network or disk transactions)
Instagram: / codingwithmitch
code: github.com/mit...

Пікірлер: 330
Network Timeouts with Kotlin Coroutines
12:35
CodingWithMitch
Рет қаралды 27 М.
Kotlin Coroutines 101 - Android Conference Talks
24:49
Android Developers
Рет қаралды 134 М.
Yummy Lifehack 😋 @artur-boy
00:19
Andrey Grechka
Рет қаралды 4,5 МЛН
小丑和白天使的比试。#天使 #小丑 #超人不会飞
00:51
超人不会飞
Рет қаралды 32 МЛН
Underwater Challenge 😱
00:37
Topper Guild
Рет қаралды 46 МЛН
Blue Food VS Red Food Emoji Mukbang
00:33
MOOMOO STUDIO [무무 스튜디오]
Рет қаралды 32 МЛН
PARALLEL Background Tasks with Kotlin Coroutines (ASYNC AND AWAIT)
20:18
Understand Kotlin Coroutines on Android (Google I/O'19)
37:49
Android Developers
Рет қаралды 174 М.
RecyclerView (Kotlin Beginner Example)
39:22
CodingWithMitch
Рет қаралды 71 М.
95% Don't Understand THIS About Coroutines (Main-Safety)
9:38
Philipp Lackner
Рет қаралды 28 М.
Supervisor Job (Kotlin Coroutines)
12:05
CodingWithMitch
Рет қаралды 14 М.
The Essence of Coroutines
8:10
Dave Leeds
Рет қаралды 9 М.
iOS Development is Easier than Android Development (VLOG)
20:41
CodingWithMitch
Рет қаралды 52 М.
Model View View-Model (MVVM): Getting Started
29:12
CodingWithMitch
Рет қаралды 398 М.
Неофициальная работа
0:57
Тони
Рет қаралды 1,5 МЛН
Мой новый мега монитор!🤯
1:00
Корнеич
Рет қаралды 9 МЛН
Как настроить камеру хоп-ап
1:00
TimToker
Рет қаралды 3,9 МЛН