Colibrio Result
Represents result of an operation. Can be either ColibrioResult.Success holding data of type T, or ColibrioResult.Error holding exception of type ColibrioException.
Inheritors
Types
Functions
Returns the encapsulated value if this ColibrioResult is ColibrioResult.Success or null if it is a ColibrioResult.Error
Performs the given action on the encapsulated ColibrioException exception if this instance is ColibrioResult.Error. Returns the original ColibrioResult unchanged.
Performs the given suspend action on the encapsulated ColibrioException exception if this instance is ColibrioResult.Error. Returns the original ColibrioResult unchanged.
Performs the given action on the encapsulated data if this instance is ColibrioResult.Success. Returns the original ColibrioResult unchanged.
Performs the given suspend action on the encapsulated data if this instance is ColibrioResult.Success. Returns the original ColibrioResult unchanged.