-
public final class ContinueResult<R extends Object>The result provided by Continue.with when the Java user wants to inspect the results of a Kotlin coroutine completing.
-
-
Constructor Summary
Constructors Constructor Description ContinueResult(Boolean isSuccess, R data, Throwable throwable)
-
Method Summary
Modifier and Type Method Description final BooleangetIsSuccess()Whether the coroutine call was successful ( true) or not (false)final RgetData()The data that is returned by the coroutine when complete. final ThrowablegetThrowable()The throwable that was thrown by the coroutine. -
-
Method Detail
-
getIsSuccess
final Boolean getIsSuccess()
Whether the coroutine call was successful (
true) or not (false)
-
getData
final R getData()
The data that is returned by the coroutine when complete. This will be
nullif isSuccess isfalse.
-
getThrowable
final Throwable getThrowable()
The throwable that was thrown by the coroutine. This will be
nullif isSuccess istrue.
-
-
-
-