wait
import { wait } from '@esri/hub-common';
await wait(1000); // waits for 1 second before continuing
A generic utility function for delaying an action by a provided timeout
import { wait } from '@esri/hub-common';
await wait(1000); // waits for 1 second before continuing
A generic utility function for delaying an action by a provided timeout
Parameters
Returns
An empty promise that needs to be awaited
Promise<Object>
Function defined in common/src/utils/wait.ts:12