Skip to content

Commit 5f8b3a8

Browse files
committed
update
1 parent 4164681 commit 5f8b3a8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

playground.js

+7
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
const axios = require('axios');
22

3+
async function sleep(ms) {
4+
return new Promise((resolve) => {
5+
setTimeout(resolve, ms);
6+
})
7+
}
8+
39
const test = async () => {
410
try {
511
const result = await axios.get(`https://polkadot.w3f.community/valid`);
12+
await sleep(600000);
613
} catch (err) {
714
console.log(`err`);
815
console.log(err);

0 commit comments

Comments
 (0)