© 2023 Hashnode
#coroutines
Introduction When it comes to executing a piece of code across multiple frames in Unity, the first thing that comes to mind is coroutines. This is not surprising, as most of the examples found online …
CoroutineContext serves as a vital interface and a cornerstone of coroutines. A coroutine launches with a context and remains tied to it until the completion or cancellation of its job. It represent…
Hey Android-ers 👋🏻, In big Android projects, it is common to divide the app into several modules. This can be done for a variety of reasons, such as to improve modularity, testability, or maintainab…
Enable us to decide on which thread (or pool of threads) a coroutine should be running ie. starting and resuming. Provided as a part of the coroutine context within a scope. CoroutineDispatcher impl…
The aspect ratio of an image is a proportional relationship between its width and height. It is commonly expressed as two numbers separated by a colon, as in 16:9. This ratio is extremely important in…
CoroutineScope interface encapsulates the CoroutineContext. Coroutine builders like launch{}, async{} are extensions on the coroutine scope. Coroutine library provides a function called CoroutineSc…
Coroutine is a computer program component that makes it possible to execute a block of code concurrently. Coroutine works on a suspendable mechanism in which it suspends a piece of the program to exe…
Scope Coroutines are launched within a coroutine scope, which sets the execution boundary. The coroutine scope acts as a platform, providing the necessary context for launching and managing coroutin…
Reactive programming has become a popular paradigm for developing scalable and responsive applications, and Kotlin is at the forefront with its powerful coroutines. Kotlin coroutines simplify asynchro…
Room is a persistence library that provides an abstraction layer over SQLite in Android applications. It makes it easier to work with databases, and it supports coroutines in Kotlin for better handlin…