Language Elements

Data Types

Exctension Functions

Object Oriented Kotlin

Data Classes

Coroutines

Collections

Kotlin Example Codes

Kotlin Interview Questions

Multi-threading approach in Android is used to handle tasks on separate thread (or threads) without blocking the Main UI thread. Couroutines provides much better alternative to common solutions, such as Asyntask (currently deprecated), Thread Pool Executor and Rx Java. Coroutines are considered light-weight threads that do not block the main thread, while running code concurrently. More strictly, they are light-weight but not threads, and are blocks of code used by one or more non-blocking threads.

Some of the main features of Coroutines include:




Copyright © by Zafar Yasin. All rights reserved.