isClosed

val isClosed: Boolean

Returns true if this instance represents unsuccessful operation to a closed or cancelled channel.

In this case isSuccess returns false, isFailure returns true, but it does not imply that exceptionOrNull returns non-null value.

It can happen if the channel was closed normally without an exception.

Sources

common source
Link copied to clipboard