for the fetch to finish and saves the received response in res
Supposed I have DOM related operations need to be executed while waiting for resolving promise which not depending on the response.
Can’t async/await do this ?
What I want is the fetch doesn’t block the code follows by it
then don't use await
async/await doesn't prevent execution while waiting for a promise
Обсуждают сегодня