The Basics - Kotlin Coroutines

preview_player
Показать описание
🏆 My Online Courses
⭐Discount Coupon: LAUNCH-STEVDZA-SAN

🐱‍👤 Wanna become a member? Join!

📸 Instagram

A coroutine is a concurrency design pattern that you can use on Android to simplify code that executes asynchronously. Coroutines were added to Kotlin in version 1.3 and are based on established concepts from other languages.

On Android, coroutines help to manage long-running tasks that might otherwise block the main thread and cause your app to become unresponsive. Over 50% of professional developers who use coroutines have reported seeing increased productivity.

Kotlin, as a language, provides only minimal low-level APIs in its standard library to enable various other libraries to utilize coroutines. Unlike many other languages with similar capabilities, async and await are not keywords in Kotlin and are not even part of its standard library. Moreover, Kotlin's concept of suspending function provides a safer and less error-prone abstraction for asynchronous operations than futures and promises.

Other videos:

🕒Timestamps:
0:00 - Introduction
0:22 - Synchronous vs Asynchronous
2:32 - Dispatchers
3:06 - Non-Blocking Execution
3:39 - Suspend Keyword
4:02 - Practical Examples
Рекомендации по теме
Комментарии
Автор

We definitely want more. Thanks for teaching for us

haydarfurkanbiyiklioglu
Автор

I love this man, he is concise I want more please

kwesiamartey
Автор

The most understandable explanations I ever seen, thanks

fethiourghi
Автор

I have recently just begun diving into Kotlin and I am quite enjoying myself as it's been a while since I was actively coding. One thing that stood out to me with Kotlin had to be it's Coroutines and after watching this video; I not only feel informed but a lot more spirited and I can't thank you enough. I just might wind up binging on your channel all weekend. Thank you and we definitely need more content.

juswes
Автор

Really liked the way you were explaining. Waiting for more on coroutines.

adityamishra
Автор

I am from another country in general, but I understand this Teacher better than my teachers in my native language

kos_abrikos
Автор

Hi, yes of course we want more. Don't ask stupid questions. 😂😂😂

nicolasvantsis
Автор

Definitely we want more videos on that. Your all videos are Luck

amleshkumar
Автор

hi, thread.sleep is required for playground or in any kotlin executor lets say android studio?

akash
Автор

You made it very easy to understand! Thank you so much!!

kateanne
Автор

Super. Well explained. Please need more.

HariKrishna-miis
Автор

Yeah, we want more tutorials ... waiting ...Thank you :)

mdevikadarlami
Автор

more than perfect > Mach weiter.. gut gemacht!

abdelrahman
Автор

hi, why when you passed to withContext() Dispatchers.IO name of Thread still is the same, did not change to IO

arctic
Автор

Can also explain about different types of courotine scopes and difference between each of them...like GlobslScope, CourotineScope, ViewModelScope etc.

rabhGrwal
Автор

Love your content and your voice that sounds like a bandit from Stalker.

strbusta
Автор

Hello Stevdza, your explanations are perfect, also please try to give us some real-world example of using coroutines, thank you!

truepicksyt
Автор

Thanks ❤️my dear teacher
Love form india

Arunxolo
Автор

This is FIRE! So well explained and very nice code examples . Tahnk you! :)

rolfchristensen
Автор

View model scopes would be very interesting

dibbo-mrinmoysaha