getOrNull

fun getOrNull(): R?(source)

Returns the successful result or null if the attempt failed.