3 ms·
What's so good about it? I still want to fire some kind of callback when it's done. Or am I missing something?
by Kiro 11y ago
What's so good about it? I still want to fire some kind of callback when it's done. Or am I missing something?
- smcl 11y agoI can't see either - would be nice to see\understand a little more what's so special about it.
- mateuszf 11y agoWhen it's done, you will have the value in orders variable. If you can do something with it - just do it in new line in the same scope. You can also use catch exceptions using standard try catch block.
- Loque 11y agoIt's just sugar, and allows people to write JS do to this in a more consistent manner.
- nailer 11y agoYou only want to fire a callback because that's how you did async previously. In reality, all you want is async.