State

private enum State : Sendable

The hidden state of an instance.

  • The value has never been read; the payload is the value computation.

    Declaration

    Swift

    case unevaluated(@Sendable () throws -> T)
  • The value has been read and is stored in the payload.

    Declaration

    Swift

    case success(T)
  • An error was thrown from value computation and is stored in the payload.

    Declaration

    Swift

    case failure(any Error)