What is the equivalent of Bluebird `Q.when`?

Turning to Bluebird from Q, I just want to make sure that this is culturally correct: is there an equivalent to Q.when(someValue); or Q(someValue); ?

This is Promise.resolve(someValue); ?

+6
source share
1 answer

This is Promise.resolve(someValue); ?

Yes.

+10
source

Source: https://habr.com/ru/post/987974/


All Articles