Quantcast
Channel: Using a Promise to create "atomic" blocks of code in Javascript - Stack Overflow
Browsing index pages (2 articles)
↧

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


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

Browsing index pages (2 articles)


Latest Images