https://kotlinlang.org logo
#ktor
Title
# ktor
s

Szymon Tosik

02/03/2019, 3:28 PM
Any chance someone could look at the issue I created two days ago? https://github.com/ktorio/ktor/issues/917, maybe someone knows how could I consume Flowable to return its result as a json to the client
v

Vinicius Carvalho

02/04/2019, 7:07 PM
Hum, you will most likely need to create an extension from Flowable -> coroutines
Flowable is really not a type, and the Spring guys (Rossen specially) put a lot of work on trying to convert a streamable entity (flowable) into a not streamable type (json, as you do need START_OBJECT, END_OBJECT)