closedCause

expect open override val closedCause: Throwable?

Returns the underlying cause the channel was closed with or null if closed successfully or not yet closed. A failed channel will have a closed cause.