load

suspend fun load(force: Boolean = false): Result<T>

Attempts to load the value of this loadable. If force loaded, and the value is already loaded, it will run unload before getting a new instance.

Return

A result with the new value or an exception if one was thrown.

Parameters

force

If we should try to load the value even if it is already loaded.