wait time in milliseconds
Asnychronous function for waiting until the JavaScript call stack is empty.
Can be used to wait for the shortest possible amount of time after the current execution context has been finished.
Example:
// Add some DOM element via JS and set some CSS
await AsyncUtils.waitForNextExecutionContext(); // Let the browser actually render the DOM element
// Ask browser for rendered size of the newly created DOM element
Generated using TypeDoc
Asynchronous function for waiting a certain amount of time