There is no reason to argue when every person has ...
# coroutines
e
There is no reason to argue when every person has its own use-case in mind. Different use-cases are better suited for different solutions and tools. For those who say “ReactiveX is enough” I’d suggest to look at coroutine-based #ktor routing and try to figure out how ReactiveX would have been of any help there 😉
👍 1
d
Could you please elaborate why rx won’t be useful there?
e
I’d really suggest you look at how ktor uses suspending functions and what power does it bring
d
I had. it’s a little hard to grok the whole architecture right away. I’ll try more.
e
Even the most basic samples use suspending functions. The most basic
call.responText
is a suspending function that you can just
invoke
. You don’t need flatMap or anything like that to combine it with other steps of processing you do. You can naturally describe the step-by-step logic of your application.