Tag: multithreading
All the articles with the tag "multithreading".
Tag:multithreading
-
Understanding Dispatchers: Main and Main.immediate
A deep dive into Kotlin Coroutine Dispatchers. Understand the subtle but important difference between Dispatchers.Main and Dispatchers.Main.immediate in Android.
-
Collecting items from the Flow in chunks💦
Learn how to collect Kotlin Flow items in chunks or intervals without losing data. A practical guide to handling high-frequency data streams efficiently.
-
Sleepless Concurrency: delay() vs. Thread.sleep()
Explore the difference between delay() and Thread.sleep() in Kotlin. Understand how non-blocking concurrency works from a platform perspective.
-
Exploring "select" expression of Kotlin coroutines
Learn how to use the 'select' expression in Kotlin Coroutines to await multiple suspending functions and select the first one that completes.
-
Combining StateFlows and transforming it into a StateFlow
Master the art of combining multiple StateFlows into a single transformed StateFlow. Explore utilities and best practices for managing complex states in Kotlin.
-
Leveraging the Semaphore concept in Coroutines to limit the parallelism 🔀
Explore the concept of Semaphores in Kotlin Coroutines. Learn how to limit parallelism and manage resource access in concurrent programming.