1/** 2 * Wraps `setTimeout` in a promise. 3 * @param {Function} fn 4 * @param {number} timeout 5 * @returns {Promise<*>} 6 */ 7export default function asyncTimeout(fn, timeout) { 8 return new Promise((resolve) => { 9 window.setTimeout(() => { 10 fn(); 11 resolve(); 12 }, timeout); 13 }); 14}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.