blob: 66c404f8e0065707ea6f9ac67fd9eabe726efb00 (
about) (
plain)
1
2
3
4
5
6
7
|
/**
* A "modern" sleep statement.
*
* @param ms The number of milliseconds to wait.
*/
export const delay = (ms: number) =>
new Promise((resolve) => setTimeout(resolve, ms))
|