Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Kotlin Coroutines - From Fundamentals to Advanced Concepts

Smartherd via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Dive into a comprehensive 2-hour tutorial on Kotlin Coroutines, covering everything from fundamentals to advanced concepts. Learn about coroutine basics, builders, cancellation, exception handling, and composition of suspending functions. Explore the differences between threads and coroutines, implement various coroutine builders, and understand cooperative cancellation. Discover how to handle exceptions, use timeouts, and compose suspending functions sequentially and concurrently. Delve into advanced topics like CoroutineScope, CoroutineContext, and Dispatchers. Gain practical knowledge through demos in IntelliJ IDEA and clear presentations, making you proficient in using coroutines for efficient asynchronous programming in Kotlin.

Syllabus

Course Overview
Chapter 1: Coroutine Fundamentals
Threads vs. Coroutines
What are Coroutines?
Coroutines Properties
Implement Coroutines
delay function
suspend function
runBlocking lambda
Custom suspending function
Chapter 1: Summary
Chapter 2: Coroutine Builders
Coroutine Builders
Purpose of GlobalScope
launch coroutine builder
async coroutine builder
runBlocking coroutine builder
Chapter 2: Summary
Chapter 3: Coroutine Cancellation and Exception Handling
What is Cooperative Cancellation?
yield function
isActive flag
Handling CancellationException
withContext Coroutine Builder
Throw Exception with message
Timeouts: withTimeout & withTimeoutOrNull
Chapter 3: Summary
Chapter 4: Composing Suspending Functions
Sequential Execution
Concurrent Execution
Lazy Async Execution
Chapter 4: Summary
Chapter 5: CoroutineScope, CoroutineContext, and Dispatchers
CoroutineScope
CoroutineContext Dispatchers
Thank You!

Taught by

Smartherd

Reviews

Start your review of Kotlin Coroutines - From Fundamentals to Advanced Concepts

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.