Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Switching over to Bluebird from Q, I just want to make sure it's culturally correct: Is there an equivalent to Q.when(someValue); or Q(someValue);?

Is it Promise.resolve(someValue);?

like image 789
asking Avatar asked May 27 '15 04:05

asking


1 Answers

Is it Promise.resolve(someValue);?

Yes.

like image 66
Gabriel L. Avatar answered Oct 02 '22 23:10

Gabriel L.