Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3585

Re: Using promises to halt code execution.

$
0
0

Promises are used to process something once an async operation completes, it's an alternative to callbacks.  Is _checkExistingDefaultTimes calling a backend request?  If so, can you just use a batch call to do the same?  Otherwise jquery supports a promise loop, but I find that bluebird's promise.all approach is more readable.

 

Regards,

Jamie

SAP - Technology RIG


Viewing all articles
Browse latest Browse all 3585

Trending Articles



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