AsyncState

data class AsyncState<T> @MsdkInternalApi constructor(val value: T, val loadingState: LoadingState = LoadingState.Done)

AsyncState - Represents a state value which is asynchronously updated.

The definition is flexible and does not impose a rules on which combinations of values are appropriate for a given instance.

For example, there is no requirement that the initial value is null, nor that a valid value cannot exist with a LoadingState.Failure.

Since

5.0.0

Parameters

T
  • generic type of the value.

Constructors

Link copied to clipboard
@MsdkInternalApi
constructor(value: T, loadingState: LoadingState = LoadingState.Done)

Properties

Link copied to clipboard
Link copied to clipboard
val value: T