Companion

object Companion

Factory methods for creating Result instances.

Functions

Link copied to clipboard
fun <T> failure(error: NRError): Result<T>

Creates a failed result that holds error.

Link copied to clipboard
fun <T> success(value: T): Result<T>

Creates a successful result that holds value.