3 ms·
Also, if you're targeting a JS implementation with generators, but no await, Q has an async method that uses generators to achieve the same result, albeit with
by mistercow 11y ago
Also, if you're targeting a JS implementation with generators, but no await, Q has an async method that uses generators to achieve the same result, albeit with "yield" instead of "await" (in fact, I believe babel's experimental await support uses generators as an intermediate transform; sure looks like it from the code it generates).
This means you can get await-like promise handling in Node.js using the --harmony_generators flag.