<@U6RBWUFTQ> I got really tired of bugs in old IO,...
# io
a
@leonid I got really tired of bugs in old IO, so I've forked it and deplyed in our work repository. So I am now rewriting our code using io-2 and I have some comments already.
Bytes
interface provides input by
input
method. The problem is that it could leak an Input that could survive closing of parent
Bytes
and will be invalid. I propose to replace it with consumer function like described here: https://github.com/Kotlin/kotlinx-io/issues/71 Also
Bytes
has
size
function. I can't see a way to change size after creation, so I propose to change it to value and use
lazy
delegate to compute it on first call.
e
cc @Vsevolod Tolstopyatov [JB]
a
My experimental builds will be deployed here: https://bintray.com/mipt-npm/dev/kotlinx-io