commonMain.outcome.Builder.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of state Show documentation
Show all versions of state Show documentation
Progress-aware failure states
The newest version!
package opensavvy.state.outcome
@Deprecated("The 'success' builder has been renamed to 'successful'", replaceWith = ReplaceWith("successful()", "opensavvy.state.outcome.successful"))
fun Value.success() = Outcome.Success(this)
fun Value.successful() = Outcome.Success(this)
fun Failure.failed() = Outcome.Failure(this)