From e5021187e96b78b53203bd95d08d6818aea47d17 Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Wed, 14 Jul 2021 15:10:31 +0200 Subject: New Ignite 7.0.6 app --- app/utils/delay.ts | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 app/utils/delay.ts (limited to 'app/utils/delay.ts') diff --git a/app/utils/delay.ts b/app/utils/delay.ts new file mode 100644 index 0000000..6a2ef8d --- /dev/null +++ b/app/utils/delay.ts @@ -0,0 +1,6 @@ +/** + * A "modern" sleep statement. + * + * @param ms The number of milliseconds to wait. + */ +export const delay = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms)) -- cgit v1.2.3