isFailure

val isFailure: Boolean

Returns true if this instance represents unsuccessful operation.

In this case isSuccess returns false, but it does not imply that the channel is failed or closed.

Example of a failed operation without an exception and channel being closed is Channel.trySend attempt to a channel that is full.

Sources

common source
Link copied to clipboard