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.
The promise or async function to wait for.
The minimum time to wait in milliseconds. Default is 700 milliseconds.
A promise that resolves with the result of the specified promise or async function.
activity.setBusyWith(waitMinimumTime(async () => { await odata.post(...);})); Copy
activity.setBusyWith(waitMinimumTime(async () => { await odata.post(...);}));
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.