From b1157af9cd66878623ad1f9fadac862e4990901c Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Thu, 25 May 2023 01:20:56 +0200 Subject: Updated the lib for the new api --- lib/api.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/api.js') diff --git a/lib/api.js b/lib/api.js index bbb2977..abcd85d 100644 --- a/lib/api.js +++ b/lib/api.js @@ -69,3 +69,7 @@ export function debugLog(ctx) { console.log(`--- ${Date()} -----------------------------------------------------------------------------`); console.log(JSON.stringify(ctx, null, 2)); } + +export function sleep(delay) { + return new Promise((resolve) => setTimeout(resolve, delay)) +} -- cgit v1.2.3