CS Crunch · Aug 24, 2016
Promisify A Callback Function Without 3rd Party Libraries
0Sign in to vote or save
This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.
I was recently working on some code in which I wanted to use Promises, but all that I had was callback-centric code. In the past, I have imported libraries such as bluebird for this particular problem, but now that seems like a bit of overkill to get just one function. I m already using ES6, so I don t need a polyfill in order to use Promises; all that I want is a simple promisify() function.…
Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.