getOrElse

abstract fun getOrElse(default: @UnsafeVariance() T): T

Gets the result of the computation when successful, or a given default value otherwise.