Package 

Class ContinueResult


  • 
    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.

    • Method Summary

      Modifier and Type Method Description
      final Boolean getIsSuccess() Whether the coroutine call was successful (true) or not (false)
      final R getData() The data that is returned by the coroutine when complete.
      final Throwable getThrowable() The throwable that was thrown by the coroutine.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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 null if isSuccess is false.