• Wrap an operation that may throw an Error (try-catch style) into checked exception style

    Type Parameters

    • T

    • E = unknown

    Parameters

    • op: (() => T)

      The operation function

        • (): T
        • Returns T

    Returns Result<T, E>

©2020 - 2024 Oraichain Foundation