failure

fun failure(reason: String? = null): JobResult<Nothing>(source)

Creates a Failure result.