Hello, today I will talk about an important topic of coroutine: exception handling. We will learn different methods for error handling with coroutines and know when to use which method. Coroutine error handling mechanism. When an exception is thrown in a coroutine, instead of handling the application crash right where
Continue readingAuthor: Dương Vũ
Deep Dive into Dispatchers for Kotlin Coroutines
As we know in the previous article, Coroutine Dispatcher helps us manage threads that will be used when starting coroutines. They allow us to specify which thread or thread pool will be used. To run a task in the background thread, we can use Dispatchers.IO or Dispatchers.Default. These two dispatchers
Continue readingBasic knowledge about Coroutine Scope and Dispatchers
Hello, this is the 2nd article in the Kotlin Coroutine tutorial series. In this article we will learn about Coroutine Scope What is Coroutine Scope? As we know in the previous article, to start a coroutine we need to use the launch or async function. These are essentially extension functions
Continue readingBasic concepts about Kotlin Coroutine – Coroutine and Suspend functions
Hello guys! This is the first article in a series of tutorials on Kotlin coroutine. The articles will go from basic to advanced levels. I hope it will help you guys. What is a coroutine? You can imagine Corotine as “lightweight threads”. We can have multiple coroutines running on one
Continue reading