Overview
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