Curio is great. We definitely need something like ...
# coroutines
e
Curio is great. We definitely need something like that in Kotlin (something easier than Java's async IO), but they have to write
await client.recv(100000)
in Curio, because that is how Python requires them to do. I bet if the
await
keyword was not required in Python, they'd write it like
client.recv(1000000)
. In Kotlin you can write async IO library in any way you like, there is no requirement to use
await
, but, if you feel its needed, you can use async-style in Kotlin (just like in Python). See more about different styles here: https://github.com/Kotlin/kotlin-coroutines/blob/master/kotlin-coroutines-informal.md#asynchronous-programming-styles
K 2