Kotlin Coroutine Cancellation - Cooperative Cancellation, Exception Handling, and Timeouts
Offered By: Smartherd via YouTube
Course Description
Overview
Dive into the intricacies of Kotlin Coroutine Cancellation in this comprehensive 29-minute video tutorial. Learn about cooperative coroutines and how to write cooperative code. Explore essential functions like job.cancel() and job.cancelAndJoin(), and understand the use of suspending functions such as yield() and delay(). Discover the CoroutineScope.isActive boolean flag and its significance. Master handling CancellationException and TimeoutCancellationException, and gain proficiency in using coroutine builders like withContext(NonCancellable), withTimeout, and withTimeoutOrNull. The tutorial covers various topics including cooperative cancellation, exception handling, timeouts, and provides a summary of key concepts, making it an invaluable resource for developers looking to enhance their Kotlin coroutine skills.
Syllabus
Welcome
Prerequisites
Cooperative Coroutine Cancellation
yield function
isActive flag
Handling CancellationException
withContext
Exception with message
Timeouts
Summary
What's Next? .
Taught by
Smartherd
Related Courses
Kotlin Bootcamp for ProgrammersGoogle via Udacity Введение в язык Котлин
St. Petersburg State Polytechnic University via Coursera Kotlin for Java Developers
JetBrains via Coursera Developing Android Apps with Kotlin
Google via Udacity Advanced Android with Kotlin
Google via Udacity