Hiosdra
08/03/2020, 7:11 PMList.traverse
version accepting suspend
since arrow have Fx Coroutines? (context in thread)Hiosdra
08/03/2020, 7:11 PMsuspend fun <T, L, R> List<T>.traverseEffect(f: suspend (T) -> Either<L, R>): Either<L, List<R>>
Normal traverse
/ parTraverse
don’t accept suspend functions, so I sadly must have workaround, using IO.effect
.Hiosdra
08/03/2020, 7:12 PMeither {
val categories = !supportedTrees.traverseEffect { categoryCoreClient.getCategories(it.value) }
...
}
Jannis
08/03/2020, 7:15 PMIO.effect
I guess.Hiosdra
08/03/2020, 7:19 PMJannis
08/03/2020, 7:20 PMHiosdra
08/05/2020, 8:44 AM