toKotlinResult

Convert a Fetch to a KotlinResult by catching the resultOf any exceptions thrown by getOrThrow.

Return

A KotlinResult containing the result or cache of the fetch or a Throwable if an error occurred.