Chapter 3: Coroutine Cancellation and Exception Handling
20
What is Cooperative Cancellation?
21
yield function
22
isActive flag
23
Handling CancellationException
24
withContext Coroutine Builder
25
Throw Exception with message
26
Timeouts: withTimeout & withTimeoutOrNull
27
Chapter 3: Summary
28
Chapter 4: Composing Suspending Functions
29
Sequential Execution
30
Concurrent Execution
31
Lazy Async Execution
32
Chapter 4: Summary
33
Chapter 5: CoroutineScope, CoroutineContext, and Dispatchers
34
CoroutineScope
35
CoroutineContext Dispatchers
36
Thank You!
Description:
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.
Kotlin Coroutines - From Fundamentals to Advanced Concepts