I found an existing library that uses promises, however it doesn't use bluebird. The library functions don't come with all the extra features bluebird does like .map()
or .tap()
. How do I convert a "normal" or "non-bluebird" promise to a bluebird one, with all the extra features bluebird offers?
I tried wrapping the existing promise in Promise.promisify
and Promise.resolve
and neither seemed to work.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…