public class Result<VALUE>
A discriminated union that encapsulates successful outcome either with class Success or with class Error
This class is adapted to kotlin coroutines so if class Error contains CancellationException then this error is rethrown.
class Success,
class Error,
class Error| Modifier and Type | Method and Description |
|---|---|
VALUE |
component1() |
java.lang.Throwable |
component2() |
java.lang.String |
toString() |