PageSourceSearch

https://reader.exacteditions.com/assets/reader/helpers/asyncTimeout-65b831af.js

js exacteditions.com collected 2026-10-01 10:19:31 UTC 292 bytes, 14 lines download raw bytes

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.