<@U7BP7E2GJ> On coroutines vs Rx. If you have some...
# announcements
e
@Olekss On coroutines vs Rx. If you have something async to observe — go for Rx. If you have async operations — go for coroutines. In between or with some legacy/interop considerations - think 🙂 An example of unfit use: if you have a bunch of remote operations and make all of those to return
Single
, like
fun doSomething(): Single<SomeResult>
. Conceptually, there is nothing to observe there — these are just remote operations that you want to invoke asynchronously. Using
suspend fun doSomething(): SomeResult
is simply more natural for those cases and results in more readable code.
👍🏼 2