D
D
Dead Sea2016-12-20 15:31:37
Node.js
Dead Sea, 2016-12-20 15:31:37

How to promissify a class with bluebird in node?

I am looking for a way to do synchronous operations in node. Many praise the bluebird module. I found a note on github, and I can’t understand why bluebird is here, if you could get by with the usual built-in Promise, because it will work the same way?
And yet, tell me how to properly promissify the class? Force each method to return a promise, or is it possible to somehow wrap everything at once through bluebird? Because it doesn't come out right.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question