@nospamproxy/core
    Preparing search index...
    • Wait for a minimum amount of time before resolving a promise. This can be used to ensure that a busy indicator is shown for at least a certain amount of time.

      Note, that the delay is always set to 1 millisecond in unit tests.

      Type Parameters

      • T

      Parameters

      • promiseOrFn: Promise<T> | (() => Promise<T>)

        The promise or async function to wait for.

      • delay: number = 700

        The minimum time to wait in milliseconds. Default is 700 milliseconds.

      Returns Promise<T>

      A promise that resolves with the result of the specified promise or async function.

      activity.setBusyWith(waitMinimumTime(async () => {
      await odata.post(...);
      }));