ioium
    Preparing search index...

    Function tryTrack

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

      Type Parameters

      • T

      Parameters

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

      Returns T | null

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

      Type Parameters

      • T

      Parameters

      • label: string
      • promise: Promise<T>

      Returns Promise<T | null>