LoadableResult
A result which can be loaded.
LoadableResult.swift:17final class LoadableResult<Value>
It is useful for objects that hold a state on disk and need to be loaded frequently.
Citizens in Workspace
Type members
init(@escaping () throws -> Value
) Create a loadable result.
Instance members
func load(
) throws -> Value Load and return the value.
func loadResult(
) -> Result<Value, Error> Load and return the result.