christophsturm
11/20/2020, 11:07 AMPublisher<T>.asFlow()
not support nullable values? https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-reactive/kotlinx.coroutines.reactive/org.reactivestreams.-publisher/as-flow.htmlelizarov
11/20/2020, 12:35 PMchristophsturm
11/20/2020, 3:03 PMval selectResult: Result =
connection.createStatement("select * from users").execute().awaitSingle()
val namesFlow =
selectResult.map { row, _ -> row.get("NAME", String::class.java) as String }.asFlow()
and it always worked but with IDEA EAP i needed to add the “as string” cast. (row.get is a java method annotated as nullable)