getOrThrow

fun getOrThrow(): T

Returns the encapsulated value if this instance represents success or throws an exception if it is closed or failed.

Sources

common source
Link copied to clipboard