Contained in: Concurrency with Coroutines in Android
kotlin coroutines
Android & Kotlin
Lesson in Concurrency with Coroutines in Android
Understand Concurrency
Jun 5 2024 · Lesson
…changes. Before you start coding, take a look at two different approaches to concurrency in Android. They were popular before the introduction of Kotlin Coroutines. RxJava The first one is RxJava. It’s a library that implements reactive extensions and the observer pattern. An observer is a callback invoked when…
Android & Kotlin
Concurrency with Coroutines in Android
Jun 5 2024 · Multimodal Module (1 hr, 45 mins)
…this module, learners will be introduced to the problems of concurrency and learn how to juggle tasks by using Kotlin coroutines…
Android & Kotlin
Lesson in Concurrency with Coroutines in Android
Understand Scope & Dispatchers
Jun 5 2024 · Lesson
…provided, a new one is created. The exception is GlobalScope. It lasts as long as the process is running and isn’t cancelable. The Kotlin Coroutines library documentation doesn’t recommend using GlobalScope because of potential memory leaks. As such, it won’t be a part of this course. There…
Android & Kotlin
Lesson in Concurrency with Coroutines in Android
Use Coroutines
Jun 5 2024 · Lesson
Instructions for the use of coroutines lesson.
Android & Kotlin
Lesson in Concurrency with Coroutines in Android
Handle Errors
Jun 5 2024 · Lesson
…suppressed exceptions to it. Note that suppressed exceptions are a mechanism provided by the Java standard library and it isn’t specific to Kotlin Coroutines…
Android & Kotlin
Lesson in Concurrency with Coroutines in Android
Handle Errors
Jun 5 2024 · Lesson
…this lesson, you learned how to handle errors in Kotlin coroutines. You got familiar with SupervisorJobs and CoroutineExceptionHandlers. The rule of thumb is that the uncaught exception in the child coroutine cancels the parent and all its siblings. This rule isn’t in force when a SupervisorJob is the context…
Android & Kotlin
Lesson in Concurrency with Coroutines in Android
Understand Concurrency
Jun 5 2024 · Lesson
…queries, or heavy computations, should run on background threads. Otherwise, the app will become unresponsive. In the next lesson, you’ll learn about the Kotlin Coroutines. They are a modern way to handle concurrency…
Android & Kotlin
Lesson in Concurrency with Coroutines in Android
Understand Scope & Dispatchers
Jun 5 2024 · Lesson
Hello, and welcome to scopes and dispatchers in Kotlin coroutines. The scope of a coroutine is a basic way to control the lifetime of the coroutine. The dispatcher is a mechanism that determines which thread the coroutine runs on. In this lesson, you’ll learn the following: The concept…
Android & Kotlin
Lesson in Concurrency with Coroutines in Android
Understand Scope & Dispatchers
Jun 5 2024 · Lesson
…this lesson, you learned: About scopes and dispatchers in Kotlin coroutines. The scope of a coroutine is a basic way to control the lifetime of the coroutine. Scopes form a parent-children hierarchy of coroutines. By default, if a coroutine fails it will cancel all its siblings and the parent…
Android & Kotlin
Lesson in Concurrency with Coroutines in Android
Handle Errors
Jun 5 2024 · Lesson
Hello, and welcome to the fifth and final lesson of the module. In this lesson, you’ll learn how to handle errors in Kotlin coroutines. You’ll get familiar with SupervisorJobs and CoroutineExceptionHandlers. This lesson covers the following topics: The purpose of exception handling in coroutines. Exception aggregation. Detail…