State

sealed interface State<out F : Failure>

Represents the session's state.

Inheritors

Types

Link copied to clipboard
data object Active : Session.State<Nothing>

Denotes that a session is being actively prepared.

Link copied to clipboard

Denotes that a session is prepared and is awaiting to be committed.

Link copied to clipboard

Denotes that a session is cancelled.

Link copied to clipboard

Denotes that a session is committed.

Link copied to clipboard
sealed interface Completed<out F : Failure> : Session.State<F>

Marks a session's state as completed.

Link copied to clipboard

Denotes that a session is completed with an error.

Link copied to clipboard
data object Pending : Session.State<Nothing>

Denotes that a session is not launched yet.

Link copied to clipboard

Denotes that a session is completed successfully.

Link copied to clipboard
sealed interface Terminal

Marks a session's state as terminal.

Properties

Link copied to clipboard

Returns whether the session is in terminal state.