Every line of 'js synchronous wait' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
66 (function wait() { setTimeout(wait, 5000) })();
Secure your code as it's written. Use Snyk Code to scan source code in minutes – no build needed – and fix issues immediately. Enable Snyk Code
106 export async function wait(timeout: number): Promise<void> { 107 return new Promise<void>((resolve, reject) => setTimeout(resolve, timeout)) 108 }
49 function waitsFor(callback) { 50 if (skipRunsCounter === 0) { 51 jasmineApi.waitsFor.apply(this, arguments); 52 } 53 }