YoVDO

Kotlin Coroutine Cancellation - Cooperative Cancellation, Exception Handling, and Timeouts

Offered By: Smartherd via YouTube

Tags

Kotlin Courses Concurrency Courses Asynchronous Programming Courses Coroutines Courses

Course Description

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
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

Paradigms of Computer Programming – Fundamentals
Université catholique de Louvain via edX
Paradigms of Computer Programming – Abstraction and Concurrency
Université catholique de Louvain via edX
Computing: Art, Magic, Science - Part II
ETH Zurich via edX
Concurrency
AdaCore via Independent
Java Fundamentals for Android Development
Galileo University via edX