@adapt-arch/utiliti-es
    Preparing search index...

    Function delay

    • Get a promise that resolves after a certain duration.

      Parameters

      • duration: number = 1

        The duration to wait before resolving the promise.

      • Optionalerror: Error

        An optional error to throw instead of resolving the promise.

      Returns Promise<void>

      A promise that resolves after a certain duration.