getOrNull

fun getOrNull(): R?(source)

Returns the successful result or null if the operation failed.