R
Reactiflux

Adi – 18-39 Feb 8

Adi – 18-39 Feb 8

AAdi2/8/2022
I am trying to make API call after some delay with 3-5 secs but it fails everytime any idea why it is happening? Any suggestions for improvement?
async function foo(account_id, id, oauth_access_token) {
return new Promise((resolve, reject) => {
setTimeout(async () => {
const result = await axios.post(`API`)
resolve(result);
}, 5000);
});
}
async function foo(account_id, id, oauth_access_token) {
return new Promise((resolve, reject) => {
setTimeout(async () => {
const result = await axios.post(`API`)
resolve(result);
}, 5000);
});
}
SScriptyChris2/8/2022
what do you mean by "it fails every time"? What exactly happens?
UUUnknown User2/9/2022
Message Not Public
Sign In & Join Server To View

Looking for more? Join the community!

R
Reactiflux

Adi – 18-39 Feb 8

Join Server