Israeli Bank Importer - v1.44.5
    Preparing search index...

    Function fromPromise

    • Wraps an async operation in a Procedure, catching any thrown error.

      Type Parameters

      • T

      Parameters

      • promise: Promise<T>

        The async operation to wrap.

      • failMessage: string

        Message to use if the operation throws.

      Returns Promise<Procedure<T>>

      A Procedure containing either the resolved value or a failure.