Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
55 views
in Technique[技术] by (71.8m points)

What does a double await mean in javascript?

I was looking at some codebase and found this. Notice there are two await next to each other

 await  await fetch(fetchUrl, { method: 'get' , cache:"no-store" , headers: {
    'Cache-Control': 'no-cache'
  }})
     .then(res => res.blob())
     .then(res => {
        const data = window.URL.createObjectURL(res);
        var .................

Is it a bug? Or what is its meaning?

question from:https://stackoverflow.com/questions/65832451/what-does-a-double-await-mean-in-javascript

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...