blob: d3d1aee687ede4b9dd81a465df120254f4586c7b [file] [log] [blame]
/*
* Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
package kotlinx.coroutines.experimental.io
interface WriterSession {
fun request(min: Int): ByteBuffer?
fun written(n: Int)
}
interface WriterSuspendSession : WriterSession {
suspend fun tryAwait(n: Int)
}