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 | /*! * Copyright (c) Microsoft. All rights reserved. * Licensed under the MIT license. See LICENSE file in the project. */ /** * Returns a promise that will resolve after the given delay, useful for async/await * i.e. * await delay(100) * execute() * @param myDelay - The delay to use */ export function delay(myDelay: number): Promise<any> { return new Promise((resolve) => { setTimeout(resolve, myDelay) }) } |