Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | 11x 144009x 144009x 144008x | /** * Creates delay * @param ms - Time in milliseconds * @signature * P.delay(ms) * @example * await P.delay(1000) * @category Function */ export async function delay(ms: number): Promise<void> { return new Promise(resolve => { setTimeout(() => { resolve(); }, ms); }); } |