ResultTildeUnwrap<T, E> extension
Provides the ~ operator for unwrapping Result type values.
Usage of ~ on Result type values that do not contain () is deprecated.
~ should only be used with Result type values that are strictly designated
for error handling as a means to ergonomically propagate their errors inside of
catchResult/catchResultAsync blocks.
- on
-
- Result<
T, E>
- Result<
Operators
-
operator ~(
) → T -
Available on Result<
Deprecated: UseT, E> , provided by the ResultTildeUnwrap extensionResult.call()asvalue()to easily unwrapResulttype values instead.