https://kotlinlang.org logo
Title
p

Peter Kucera

11/16/2020, 1:28 PM
Hi guys. I have written UseCases using Observables (for logic that emits values) and then Completables(Logic that only has to be executed and doesnt return value, e.g. InvalidateDataUseCase). Currently I am migrating this implementation from RxJava to coroutines & Kotlin/Native. My question - what is the best way to replace Completables using coroutines and write alternative to CompletableUseCases inside shared?
r

russhwolf

11/16/2020, 1:49 PM
It's a bit outside the realm of KaMPKit, but a
suspend fun
that returns
Unit
is probably a good analog.
👏 4