elizarov
04/13/2017, 7:50 PMawait 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