We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a06fa0d commit c286c8aCopy full SHA for c286c8a
lib/predictions.js
@@ -21,6 +21,11 @@ async function createPrediction(options) {
21
22
if (wait) {
23
const { maxAttempts, interval } = wait;
24
+
25
+ // eslint-disable-next-line no-promise-executor-return
26
+ const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
27
+ await sleep(interval || 250);
28
29
return this.wait(await prediction, { maxAttempts, interval });
30
}
31
0 commit comments