I'm using babel
to transpile my node.js@0.10.x
code and I'm stuck with promises.
I need allSettled
-type functionality that I could use in q
and bluebird
or angular.$q
for example.
On babel's core-js Promise
, there is no allSettled
method.
Currently I'm using q.allSettled
as a workaround:
import { allSettled } from 'q';
Is there something like that in babel polyfill? Alternatively, which is a good algorithm for me to try to implement?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…