toMaybe

fun <Ok : Any> Fetch<Ok>.toMaybe(): Maybe<Ok>

Convert a Fetch to a Maybe by catching and suppressing any exceptions thrown by getOrThrow.

Return

A Maybe containing the result or cache of the fetch or a Unit if an error occurred.