Package 

Class Result


  • 
    public class Result<VALUE extends Object>
    
                        

    A discriminated union that encapsulates successful outcome either with Success or with Error

    This class is adapted to kotlin coroutines so if Error contains CancellationException then this error is rethrown.

    • Method Summary

      Modifier and Type Method Description
      String toString()
      final VALUE component1()
      final Throwable component2()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait