haroldadmin / Vector

Kotlin Coroutines based MVI architecture library for Android
https://haroldadmin.github.io/Vector/
Apache License 2.0
193 stars 9 forks source link

Make StateProcessor.drain wait until all side-effect coroutines have been processed #32

Closed haroldadmin closed 4 years ago

haroldadmin commented 4 years ago

StateProcessor's drain method now waits until all coroutines launched to process get-state actions complete. This is useful for testing and benchmarking purposes, where you can enqueue all the jobs to be processed beforehand, and then call drain() to wait until they have all completed.