Skip to content

opensavvy.state.progressive

The ProgressiveOutcome, which combines Outcome with Progress.

Types

ProgressiveOutcome

sealed class ProgressiveOutcome<out Failure, out Value>

A Outcome with integrated Progress management.

Properties

Functions

combineCompleted

Replaces incomplete outcomes by the previous completed outcome, with the updated progress information.

Replaces incomplete outcomes by the previous completed outcome, with the updated progress information.

failedWithProgress

Convenience function to instantiate a ProgressiveOutcome.Failure.

flatten

successfulWithProgress

Convenience function to instantiate a ProgressiveOutcome.Success.

withProgress

Adds progress information to this outcome to make it a ProgressiveOutcome.