ktor-io / io.ktor.utils.io / ByteWriteChannel / totalBytesWritten

totalBytesWritten

abstract val totalBytesWritten: Long

Number of bytes written to the channel. It is not guaranteed to be atomic so could be updated in the middle of write operation.