Тёмный

Kotlin Coroutine (High-quality Course) 

Smartherd
Подписаться 135 тыс.
Просмотров 99 тыс.
50% 1

Access 7000+ courses for 60 days FREE: pluralsight.pxf.io/c/1291657/...
In this 2 hour tutorial, you will learn everything you need to know about Coroutines in Kotlin using demos in IntelliJ IDEA and precise presentation.
There are 5 chapters in this course.
In chapter 1, get a solid understanding of what is #coroutine in #kotlin.
- Explore the 'suspend' keyword, comparison with threads, delay function, Thread.sleep function and a lot more.
- Basics of coroutine builders: launch, async, and runBlocking.
In chapter 2, dive deeper into Coroutine Builders and explore them in detail.
- Use GlobalScope companion object to launch coroutines.
- Why GlobalScope is discouraged to use?
- Test suspending functions by writing a JUnit test case.
In chapter 3, learn to cancel coroutines and handle exceptions.
- What is cooperative coroutine? How to write a cooperative code?
- Explore job.cancel(), and job.cancelAndJoin() functions.
- Use of yield() and delay() suspending functions (suspend modifier).
- Explore what is CoroutineScope.isActive boolean flag.
- Handle CancellationException and TimeoutCancellationException.
- Use withContext(NonCancellable), withTimeout, and withTimeoutOrNull coroutine builders
In chapter 4, compose suspending functions in different ways within a coroutine.
- Explore how code execution in coroutine is sequential by default.
- How to execute suspending functions in a coroutine concurrently?
- Lazily execute async coroutine by using CoroutineStart.LAZY
In chapter 5, learn a few advanced coroutine concepts.
- Understand what is CoroutineScope?
- What is CoroutineContext?
- What is a Dispatcher?
- Role of a dispatcher: to assign a thread to a coroutine.
- Types of Dispatcher: Confined, Unconfined, Default, Main, and IO
- Components of CoroutineContext: Job, Dispatcher, and Coroutine Name.
Source code link: bit.ly/2QtcUWR
Timestamps:
00:00:00 Course Overview
00:03:20 Chapter 1: Coroutine Fundamentals
00:03:40 Threads vs. Coroutines
00:07:25 What are Coroutines?
00:08:34 Coroutines Properties
00:09:52 Implement Coroutines
00:22:15 delay function
00:27:38 suspend function
00:28:35 runBlocking lambda
00:33:31 Custom suspending function
00:34:41 Chapter 1: Summary
00:36:12 Chapter 2: Coroutine Builders
00:36:53 Coroutine Builders
00:38:21 Purpose of GlobalScope
00:43:26 launch coroutine builder
00:50:26 async coroutine builder
00:55:18 runBlocking coroutine builder
01:00:25 Chapter 2: Summary
01:01:53 Chapter 3: Coroutine Cancellation and Exception Handling
01:02:31 What is Cooperative Cancellation?
01:11:32 yield function
01:13:16 isActive flag
01:17:48 Handling CancellationException
01:20:29 withContext Coroutine Builder
01:22:20 Throw Exception with message
01:23:43 Timeouts: withTimeout & withTimeoutOrNull
01:28:42 Chapter 3: Summary
01:30:07 Chapter 4: Composing Suspending Functions
01:31:58 Sequential Execution
01:36:44 Concurrent Execution
01:40:40 Lazy Async Execution
01:44:53 Chapter 4: Summary
01:45:31 Chapter 5: CoroutineScope, CoroutineContext, and Dispatchers
01:46:18 CoroutineScope
01:50:15 CoroutineContext (Dispatchers)
02:07:06 Thank You!
.
.
Please donate and support my work
(If you think my free tutorials are better than paid ones :)
- Patreon: bit.ly/patreon-donate
- Paypal/Payoneer: sriyank123@gmail.com
- UPI (only for India): smartherd@okaxis
:: If you want to develop a website or a mobile app, email me your requirement at sriyank.siddhartha@gmail.com :: Free demos provided beforehand ::
- Access my premium courses: bit.ly/sriyank-courses
Free Programming courses:
- Ruby Programming: bit.ly/smyt-r
- Dart Programming: bit.ly/smyt-d
- Kotlin Programming: bit.ly/smyt-k
- Java Programming: bit.ly/smyt-j
- Kotlin Coroutines: bit.ly/smyt-coru
Free Flutter course:
- Flutter App Development: bit.ly/2Rg7EFR
Free Android courses:
- Android using Kotlin: bit.ly/smyt-ka
- Android using Java: bit.ly/smyt-ja
- Android Material Design: bit.ly/2SMJqU6
- Android Jetpack Architecture: bit.ly/yt-j
- Android Multiple Screen Support: bit.ly/smyt-mss
- Android Retrofit: bit.ly/2Ee6GHn
More free programming courses:
- bit.ly/smy-list
Check out my website:
- bit.ly/smartherd
Let's get in touch! [Sriyank Siddhartha]
LinkedIn: bit.ly/sriyank-linkedin
Facebook: bit.ly/smartherd-facebook
Instagram: bit.ly/sriyank-instagram
Twitter: bit.ly/sriyank-twitter
Github: bit.ly/smartherd-github
--- Thank you for your love and support ---

Опубликовано:

 

23 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 253   
@SriyankSiddhartha
@SriyankSiddhartha 2 года назад
Comment to support. Thanks!
@purushothamangempuraj177
@purushothamangempuraj177 2 года назад
This is the clearest of many coroutines videos i have watched! Thanks a ton!
@ZondaJazz
@ZondaJazz 2 года назад
The best coroutine tutorial on the Internet! Thanks so much!!!
@strongesthumanbeing
@strongesthumanbeing 2 года назад
ONE OF THE BEST VIDEOS ON COROUTINES. Thank you so much. Loved it!!! 💙
@renanfpedro
@renanfpedro Год назад
Brilliant, the whole course was super concise. Congratulations.
@michaljanecek1103
@michaljanecek1103 Год назад
One of the better courses on RU-vid! Thanks man
@ManikantaKondeti
@ManikantaKondeti 2 года назад
Really good man! Keep publishing such high quality/complex concepts
@M.BilalAhmad
@M.BilalAhmad 2 года назад
It's hard to believe such content and outstanding presentation is free. Subscribed as a thanx :)
@salimsaudagar8208
@salimsaudagar8208 15 дней назад
I have watched many coroutine lectures but this is the first time I have understood coroutine.Amazing video keep uploading this kind of video.
@bensekyondwa
@bensekyondwa 2 года назад
This tutorial was a great one. After watching it, Coroutines are now an easy concept.
@pragyayadav3743
@pragyayadav3743 Год назад
One of the best video on coroutines . Great job! And many thanks for creating such videos. looking forward for more such contents. 👏
@mohsinikram8921
@mohsinikram8921 Год назад
Amazing Tutorial No one explain like this
@dydx3741
@dydx3741 Месяц назад
Thank you so much for this video, i had gone through so many resources on topic Coroutines but only THIS video connected all the dots in my brain thank you so much again
@nikolanikolic2043
@nikolanikolic2043 Год назад
Great job. Just watched this course and I can recommend this to everyone.
@prasantkumar7693
@prasantkumar7693 Месяц назад
I would like to say thank you for this simple and nice explanation of kotlin coroutines.
@wilsonahanmisi1187
@wilsonahanmisi1187 2 года назад
One of the best coroutines videos out there.... Thanks Mate
@HaSeebpjr01
@HaSeebpjr01 5 месяцев назад
best video about coroutines ever. Thank you for your efforts in making this concept easy to understand.
@theophilus494
@theophilus494 Год назад
this video was the best I've seen on coroutines explanation. thank you Smartherd
@TabmansTube
@TabmansTube 10 месяцев назад
this guy has some serious teaching talent, explained everything to me like I am 5
@CorDharel
@CorDharel 2 года назад
Hello Sriyank I am very happy and I would like to say thank you a lot. I had a hard time understanding coroutines at work. Now that I have watched your video is is very clear because you are a really really good teacher, you start from the basics and then get more and more difficult slowly. And the video is really good you always show what you are talking about with arrows and boxes and so on. So again thank you a lot and many greetings and best wishes from Switzerland! Regards, Marcel
@JahidHasanAshik
@JahidHasanAshik 2 года назад
One of the best coroutine tutorial on internet 🖤
@shivenderkumar4521
@shivenderkumar4521 Год назад
Best video for coroutines, very smooth and clear explaination. Thank you so much Sriyank💜
@theredd1703
@theredd1703 Год назад
Thank you so much for your time and effort in make it understandable. We really appreciate it!
@Sreekantbehera07
@Sreekantbehera07 2 года назад
Superb.. Now my maximum concept related to coroutine get cleared. Thanks🙏
@crazeeealgorithms3236
@crazeeealgorithms3236 Год назад
Thats's neat and clean, Thank you for quality content.
@faysaldeve385
@faysaldeve385 Год назад
Thank you for your effort. The course was very wonderful and useful, and I learned a lot from it, and this is due to your beautiful way of explaining. I hope with all my heart that you will continue in this creativity, and I wish you success.😍😍😍
@yusufmd1090
@yusufmd1090 Год назад
Really great content and well explained. Thank you very much.
@erickbressani
@erickbressani Год назад
This course was great! Thank you for sharing it!
@inafalcaom
@inafalcaom 2 месяца назад
You're the best, my friend! Greetings from Brazil!
@shoaibkhalid6156
@shoaibkhalid6156 Год назад
I regret not watching this video earlier. I truely love the way you teach. Thank you so much Sriyank.
@shoaibkhalid6156
@shoaibkhalid6156 Год назад
Agree Shoaib
@AnkitKumar-vt9pf
@AnkitKumar-vt9pf Год назад
Sir I realy thank you for teaching us such a difficult topic in easy and simple way.Great work sir.👌👌
@Ckbagchi
@Ckbagchi 9 месяцев назад
It's really good content for beginners like me to understand a powerful feature of Kotlin.
@ranganathansamraj1596
@ranganathansamraj1596 Месяц назад
Thank you so much for clear explanation about coroutines with slides
@avinashshyam
@avinashshyam Год назад
Amazing Tutorial. Truly high quality !!
@RaviKumar-vk6ib
@RaviKumar-vk6ib 2 года назад
Bahut badhia padeila pura bujhi heigala couroutine jaaka. God bless!
@abhishekbharti2131
@abhishekbharti2131 3 месяца назад
Thankyou.. This course is very helpful and made the concept clear. Very well explained.
@mykhailomykytyn
@mykhailomykytyn Год назад
That was great 👍 Thanks for the efforts, they're appreciated!
@mohd.sohaib5822
@mohd.sohaib5822 Год назад
Someone recommended this channel.. It's gem 💎
@vadimbutenko8814
@vadimbutenko8814 5 месяцев назад
Thank you so much for this tutorial. Very clear and understandable
@rajivbm2239
@rajivbm2239 Год назад
Thanks for your wonderful short video
@abhisheknigam6975
@abhisheknigam6975 Год назад
Excellent course on Coroutine Thanks so much Sriyank for this Course. Thanks a ton
@ekalbeli
@ekalbeli 8 месяцев назад
thanks for such a nice coroutine tutorial
@truptiparsai9488
@truptiparsai9488 9 месяцев назад
Great explanation. Thanks man. Highly appreciated
@26brains
@26brains 2 месяца назад
Brilliant tutorial! Thank you! 👏👏👏
@nishakhatoon7267
@nishakhatoon7267 Год назад
Oh my god 😮 the way of explanation is next level❤
@gemmausiku
@gemmausiku Год назад
Thanks for sharing the link with me!
@techach3490
@techach3490 2 года назад
wow Amazing course... probably the best in RU-vid. I can't thank you enough. 🙏🧡 edit: not probably but definitely lol.
@issaimai
@issaimai Год назад
Wonderful video. Beautifully explained!
@velturidasarath7420
@velturidasarath7420 4 месяца назад
Thank you for clear understanding on coroutine and some more points were added may be useful
@1990amit
@1990amit Год назад
It was really helpful to understand coroutine. Thanks a lot!!
@kunjeshvirani
@kunjeshvirani Год назад
1 Billion thanks for this awesome video.
@sachinsoni8102
@sachinsoni8102 Год назад
Best Video on Coroutines.
@phoneix24886
@phoneix24886 2 года назад
This is fantastic. I will recommend this tutorial to my juniors.
@smartherd
@smartherd 2 года назад
Awesome! Thank you!
@jongxina3595
@jongxina3595 Год назад
Best video on coroutines.
@abrhot180
@abrhot180 2 года назад
Thank you for your explanatory video
@hix0071
@hix0071 2 года назад
Very neat explanation. Keep up the good work
@musaib.shabir
@musaib.shabir 6 месяцев назад
Brilliant, Thank You soo much
@riteshkumarchoudhary6496
@riteshkumarchoudhary6496 Год назад
Thanks, Sriyank , i gothrough 2 times of this class and all the concept of coroutin is clear now Thanks again, now i am going to subscribe your channel ..
@vincentbattaglia7539
@vincentbattaglia7539 Год назад
Great video!! Quick note that this should be the proper way to add the Gradle dependency in the project: implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4") - depending on the latest version, of course.
@pavithrapurushan2168
@pavithrapurushan2168 2 года назад
Amazing course..!! well explained
@OceanNoire
@OceanNoire 6 месяцев назад
I'm wondering if there is a better tutorial about this topic. Good job
@user-cg5id6es9v
@user-cg5id6es9v 4 месяца назад
One of the best coroutine course.
@overthehorizon5611
@overthehorizon5611 Год назад
I like the sudden word "Fine" :)
@DustinML
@DustinML Год назад
very happ to learn from here. Good works!
@sankarsambangi
@sankarsambangi 2 года назад
Thanks for the wonderful course. At 46:14 you mentioned that the statement after a suspend function will execute either in main thread or some other thread but later in the course while explaining about CoroutineContext launch without param(Confined dispatcher) you mentioned all statements will execute is same thread.
@tibrec8
@tibrec8 Год назад
that was a mistake
@vikasrana1584
@vikasrana1584 Год назад
Awesome Work Done Sriyank Sir, keep it more comprehensive
@sachinsoni8102
@sachinsoni8102 Год назад
Thank you for creating such kind of videos :)
@rpitpatel1004
@rpitpatel1004 2 года назад
Great explanation and easy to understand with this road map you design. Please make a tutorial on coroutine Flow. Thank you for your hard work.
@lavkushjaiswal718
@lavkushjaiswal718 2 года назад
Thankyou Sriyank for this video. Nice exploration Coroutine topic.
@DiwakarKumar-qh3bz
@DiwakarKumar-qh3bz Год назад
Thank You for making it easy and understandable
@HichamMustafa
@HichamMustafa Год назад
Nice and Simple , Thank you
@angloessamsaber3054
@angloessamsaber3054 Год назад
Very Very clear. Thank you.
@saliouseck4263
@saliouseck4263 5 месяцев назад
Thank's very much it is a very good course making easy to understand coroutine .
@faridlotfabadi1761
@faridlotfabadi1761 7 месяцев назад
Great! Thank you very much.
@mandeepraaj4881
@mandeepraaj4881 4 месяца назад
Wonderful explanation about kotlin coroutine.
@nareshns-zm1zv
@nareshns-zm1zv 3 месяца назад
brilliant explaination. Thanks..
@UnderDogStudioz799
@UnderDogStudioz799 Год назад
thank you sir , this really helped me in ample 😇❤
@ahmadsamimyadgary8223
@ahmadsamimyadgary8223 Год назад
Wow great job!
@LegionXI.
@LegionXI. 2 года назад
A comprehensive guide for kotlin coroutines.👍
@smartherd
@smartherd 2 года назад
Plz share in your network. Thanks
@nitinkukreti2489
@nitinkukreti2489 Год назад
Very Infomative course Thanks a lot
@varunajaygupta
@varunajaygupta 6 месяцев назад
Good work!
@Rajmanov
@Rajmanov 2 года назад
thank you my friend, you are on fire!
@smartherd
@smartherd 2 года назад
And no one can stop this fire 🔥😁
@kevalkanpariya
@kevalkanpariya 2 года назад
Thank you. Really Very good Course
@ka61er
@ka61er Год назад
Thanks a lot. It help me so much ^^
@NattaWang
@NattaWang 2 года назад
thanks for concepts and fundamental of Coroutine.
@jcddcjjcdnz
@jcddcjjcdnz 2 года назад
Great for learning and for revision. Thanks.
@smartherd
@smartherd 2 года назад
Yeah
@mubbashirahmed1445
@mubbashirahmed1445 Год назад
Excellent job.... well explained
@unfunnyguy7295
@unfunnyguy7295 2 года назад
thank you for this awesome video
@GidzPaul
@GidzPaul Год назад
Good tutorial!
@Mahdi-cq6ke
@Mahdi-cq6ke Год назад
Amazing Tutorial thankssssss
@mustafasahin62
@mustafasahin62 2 года назад
Very clear. Thank you.
@videosforbasit
@videosforbasit Год назад
Thank you so much for such a informative content
@suren6413
@suren6413 9 месяцев назад
Very helpful!
@gautamsharma9823
@gautamsharma9823 Год назад
this is really awesome tutorial.
@waqarsaeed9295
@waqarsaeed9295 2 года назад
Glad to find you ! Thanks Love from pakistan..
@recipeFor
@recipeFor Год назад
Thanks a lot Siddhartha
@basantakumar352
@basantakumar352 2 года назад
Thanks for your wonderful explanaton
@sulemankhan523
@sulemankhan523 Год назад
Course was really good, thanks for making it. it would be really good if examples was more related to android instead of general kotlin
@poryasahraee4359
@poryasahraee4359 2 года назад
it was great sir... thank you so much
@FarooqAhmad-lr1fx
@FarooqAhmad-lr1fx 2 года назад
very helpful course. thanks
Далее
The Essence of Coroutines
8:10
Просмотров 7 тыс.
5 Fatal Coroutine Mistakes Nobody Tells You About
18:15
80 Year Olds Share Advice for Younger Self
12:22
Просмотров 1,3 млн
Корутины
1:51:55
Просмотров 13 тыс.
Kotlin Coroutines 101 - Android Conference Talks
24:49
Просмотров 133 тыс.
Let, Also, Apply, Run, With - Kotlin Scope Functions
11:44
Untangling Coroutine Testing by Márton Braun
42:49
Просмотров 7 тыс.