Documentation / dataflow-async / com.femastudios.dataflow.async / Loading
Go to reference

Loading

open class Loading<out T> : NotLoaded<T>

This class is one of the extensions of the NotLoaded status, and is used to represent a data that is loading. The class is open and can be extended to add custom data.

Constructors

<init>

This class is one of the extensions of the NotLoaded status, and is used to represent a data that is loading. The class is open and can be extended to add custom data.

Loading()

Functions

asField

Returns a constant Field that contains this AttributeData

open fun asField(): Field<Loading<T>>

cast

Performs a cast to a different type parameter, which is necessary to propagate a status between attributes of different type. For performance reasons it's better to cast the error rather than creating a new instance, and since most of the time the statuses extending NotLoaded do not make use of the type parameter T, it can be safely done.

open fun <O> cast(): Loading<O>

equals

open fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String