until a fetch is successful?
I have a
fetch(
stuff
)
.then(this stuff is a blob).
.then(okay now do stuff with the blob)
And i neeed something like
fetch(
stuff
)
.then(check the status until sucess)
.then(this stuff is a blob).
.then(okay now do stuff with the blob)
In my case i just need to poll the backend not follow the download of a file
I found this btw
https://github.com/AnthumChris/fetch-progress-indicators/blob/master/fetch-basic/supported-browser.js
Use async + await in a while loop?
Обсуждают сегодня