Hi guys. I have written UseCases using Observables...
# touchlab-tools
p
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
It's a bit outside the realm of KaMPKit, but a
suspend fun
that returns
Unit
is probably a good analog.
👏 4