ReadonlyUnwraps a ResultAsync, returning a fallback value if it contains an error.
The type of the value.
The type of the error.
The ResultAsync to unwrap.
The value to return when the result contains an error.
A promise that resolves to the unwrapped value or the fallback.
See unwrapAsyncOr.