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


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

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.