ktor-io / io.ktor.utils.io / ByteWriteChannel / closedCause

closedCause

abstract val closedCause: Throwable?

An closure cause exception or null if closed successfully or not yet closed