ioium
    Preparing search index...

    Function track

    • Track the execution of a thunk with appropriate I/O handling. Errors thrown by the thunk are re-thrown, if you want them logged see tryTrack.

      Type Parameters

      • T

      Parameters

      • label: string
      • thunk: () => T

      Returns T

    • Track the settlement of a promise with appropriate I/O handling. Rejections are re-thrown, if you want them logged see tryTrack.

      Type Parameters

      • T

      Parameters

      • label: string
      • promise: Promise<T>

      Returns Promise<T>