https://kotlinlang.org logo
#coroutines
Title
# coroutines
e

elizarov

04/19/2017, 2:53 PM
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

defhlt

04/20/2017, 11:55 AM
Could you please elaborate why rx won’t be useful there?
e

elizarov

04/20/2017, 12:28 PM
I’d really suggest you look at how ktor uses suspending functions and what power does it bring
d

defhlt

04/20/2017, 12:53 PM
I had. it’s a little hard to grok the whole architecture right away. I’ll try more.
e

elizarov

04/20/2017, 12:59 PM
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.
3 Views