Created
August 13, 2015 23:27
-
-
Save davideicardi/6030d36c66e5b9c5cdb9 to your computer and use it in GitHub Desktop.
Create promise from node async function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function denodifyMethod(funcName){ | |
return function(){ | |
return Q.npost(this, funcName, arguments); | |
} | |
} | |
serviceBusService.createTopicIfNotExistsQ = denodifyMethod("createTopicIfNotExists"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment