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

Operators

operator ~() → T
Deprecated: Use Result.call() as value() to easily unwrap Result type values instead.