https://kotlinlang.org logo
Title
z

Zhelenskiy

06/27/2021, 2:55 PM
Why is there no flush function in the kotlin.io? I think this is basic enough to be in stdlib.
I have multiplayform print but I have no multiplatform flush
i

ilya.gorbunov

06/30/2021, 10:30 PM
Could you clarify when do you need to use
flush
in combination with
print
? Do you experience a situation when you print something, but the result doesn't appear because some buffer is not flushed?
z

Zhelenskiy

07/01/2021, 10:10 AM
As I am not sure about when the flushing happens in Kotlin, I would be glad to clarify that. I suppose it to happen in the same cases when it happens in Java. And there such necessity exists as there is such function.