Package-level declarations
The ProgressiveOutcome, which combines Outcome with Progress.
Properties
Returns Failure.failure.
Returns Failure.failure, or null
if this outcome is not a failure.
Returns Success.value.
Returns Success.value, or null
if this outcome is not successful.
Functions
Replaces incomplete outcomes by the previous completed outcome, with the updated progress information.
Syntax sugar for asOutcome.
Syntax sugar for ProgressiveOutcome.progress.
Replaces the progress information from this progressive outcome.
Converts a ProgressiveOutcome into a Progressive.
Convenience function to instantiate a ProgressiveOutcome.Failure.
Converts an Outcome nested in a Progressive into a ProgressiveOutcome.
If this outcome is successful, replaces its value using transform.
If this outcome is failed, replaces its failure using transformFailure.
Executes block if this outcome is incomplete.
Executes block if this outcome is loading (its ProgressiveOutcome.progress is Progress.Loading).
Executes block if this outcome is successful.
Convenience function to instantiate a ProgressiveOutcome.Success.
Type-safe way to convert between an Unsuccessful and a ProgressiveOutcome.
Adds progress information to this outcome to make it a ProgressiveOutcome.