Hi, I'm considering moving to coroutines from rx. ...
# coroutines
u
Hi, I'm considering moving to coroutines from rx. From what I gather its almost 1:1 mental model
Copy code
suspend functions sequences = flatmaps of Singles
Flow = cold Observable
StateFlow = hot Observable
Dispatcher = Scheduler
Job = Disposable
So the "only" thing coroutines seem to have on rx is Ergonomics of suspend functions, vs boilerplate of flatmaps Flow can emit nulls Coroutine variants of Semaphore, Mutex allow to easier limit paralelism And ability do "hack" stuff together myself from primitives, other than waiting for rx gods to give me an operator