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 -
Deprecated: Use
Result.call()
asvalue()
to easily unwrapResult
type values instead.