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

cast

abstract fun <O> cast(): NotLoaded<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.