Quantcast
Channel: Using a Promise to create "atomic" blocks of code in Javascript - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by Dark Falcon for Using a Promise to create "atomic" blocks of code...

Chaining promises as you're attempting to do here does indeed work as expected, but I do not believe there is any guarantee that done is called synchronously. I think your code would work, but you have...

View Article


Using a Promise to create "atomic" blocks of code in Javascript

Coming from a Java background I am now trying to wrap my mind around the asynchronous nature of Javascript. I use promises in my code to do this and until now everything works like a charm, but now I...

View Article

Browsing latest articles
Browse All 2 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>