android10 / android10/Android-CleanArchitecture-Kotlin
How to run usecases in parallel?
Abierto
discussion
question
- Lenguaje dominante
- Kotlin
- Estrellas
- 4.8k
- Forks
- 929
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
I learned a lot by reading this architecture. But in my real life project, viewmodel needs to run 2 or more usecases in prallel and join the result to update the ui. With coroutine in my current code, my code is like this
```
val job1 = async {usecase A}
val job2 = async {usecase B}
processResults(job1.await(),job2.await()) // This combine two result and do some calculation here
```
However, For Either class with either() method, I don't know how to achieve this.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.