passing callback or promise to the different module , which one is better and efficient?

51 Views Asked by At

In my application, I am passing callback to different module and so on. Same thing I am able to achieve using bluebird promise.

According to best code practice, which one is better?

1

There are 1 best solutions below

2
On BEST ANSWER

There is no "best practice". However, you will find promises much easier to work with.