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

elizarov

11/20/2020, 12:35 PM
Reactive streams specification explitcly prohibits nulls (See subscriber rule #13): https://github.com/reactive-streams/reactive-streams-jvm
👍 3
c

christophsturm

11/20/2020, 3:03 PM
i was confused because i use r2dbc with coroutines, with code like this:
Copy code
val 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)
4 Views