A function to allow a promise resolution to be delayed by a number of milliseconds. Usage is as follows:
const stringValue = await myPromise.then(delay(600)).then(value => value.toString());
the number of millisecond to delay
a function that returns a promise that returns the given value, but delayed
A function to allow a promise resolution to be delayed by a number of milliseconds. Usage is as follows:
const stringValue = await myPromise.then(delay(600)).then(value => value.toString());