Kotlin, Kotlin Coroutines, Android, Concurrency, Multithreading.
Refer to ChannelFlowMerge class for the usage of Semaphore which uses Semaphore to concurrently merge Flows. This class is been used for flattening the flow and collecting flows concurrently. Advantage of this approach 🦸🏻‍♂️ Saving wastage of threads: Obviously, if we provide higher value, threads