Kotlin Coroutine (High-quality Course)

preview_player
Показать описание

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.
- 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?
- Use of yield() and delay() suspending functions (suspend modifier).
- 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.

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 :)

Free Programming courses:

Free Flutter course:

Free Android courses:

More free programming courses:

Check out my website:

Let's get in touch! [Sriyank Siddhartha]

---- Thank you for your love and support ----
Рекомендации по теме
Комментарии
Автор

This is the clearest of many coroutines videos i have watched! Thanks a ton!

purushothamangempuraj
Автор

ONE OF THE BEST VIDEOS ON COROUTINES.
Thank you so much. Loved it!!! 💙

strongesthumanbeing
Автор

Brilliant, the whole course was super concise. Congratulations.

renanfpedro
Автор

Really good man! Keep publishing such high quality/complex concepts

ManikantaKondeti
Автор

Amazing Tutorial
No one explain like this <3.
I already followed you when i was in Uni 2017k.
This video helps me alot to understand each and everything related to Coroutines.
Thanks for sharing your knowledge.

mohsinikram
Автор

One of the best video on coroutines . Great job! And many thanks for creating such videos. looking forward for more such contents. 👏

pragyayadav
Автор

One of the better courses on YouTube! Thanks man

michaljanecek
Автор

The best coroutine tutorial on the Internet! Thanks so much!!!

ZondaJazz
Автор

It's hard to believe such content and outstanding presentation is free. Subscribed as a thanx :)

M.BilalAhmad
Автор

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

CorDharel
Автор

Thank you so much for your time and effort in make it understandable. We really appreciate it!

theredd
Автор

This tutorial was a great one. After watching it, Coroutines are now an easy concept.

bensekyondwa
Автор

One of the best coroutines videos out there.... Thanks Mate

wilsonahanmisi
Автор

Thats's neat and clean, Thank you for quality content.

crazeeealgorithms
Автор

Great job. Just watched this course and I can recommend this to everyone.

nikolanikolic
Автор

This course was great! Thank you for sharing it!

erickbressani
Автор

this video was the best I've seen on coroutines explanation. thank you Smartherd

theophilus
Автор

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.😍😍😍

faysaldeve
Автор

That was great 👍 Thanks for the efforts, they're appreciated!

mykhailomykytyn
Автор

Really great content and well explained. Thank you very much.

yusufmd