@aracna/core - v1.5.0
    Preparing search index...

    Function tcp

    • The tcp function stands for try catch promise. It takes a function and returns a promise that resolves to the result of the function or the error that was thrown.

      Aracna Reference

      Type Parameters

      • T
      • U extends Error = Error

      Parameters

      • fn: () => Promise<T>
      • log: boolean = Configuration.functions.tcp.log

      Returns Promise<T | U>