Skip to content

Conversation

rohozhnikoff
Copy link

i work with node-github with my two pet projects
usually i use promises for async calling, because it's more useful for chaining, grouping, step-by-step code, debugging, abstract construction of queries to pseudo-pure function and other
that's why i improve my api-calls with promise-returning, based on es6-standart
want to share this

@rohozhnikoff
Copy link
Author

discussion in comment #205

@@ -363,7 +367,20 @@ var Client = module.exports = function(config) {
return;
}

api[section][funcName].call(api, msg, block, callback);
// good description for standart: http://www.html5rocks.com/en/tutorials/es6/promises/
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

standard*

@Pouja
Copy link

Pouja commented Mar 13, 2015

Why can't an user just use Q.ninvoke? Or any other wrapper like function of Q?

@rohozhnikoff
Copy link
Author

what reason to use Q instead of existing solutions?

Or any other wrapper like function of Q?

es6 Promise is it

@jamestalmage
Copy link

@mikedeboer see #262, I think it is the better solution.

@kaizensoze
Copy link

Holding off on a promise solution for now, but will probably go with #262 if any. Thanks for the PR though!

@gr2m
Copy link
Contributor

gr2m commented Oct 25, 2017

Hey folks, we plan to drop support for the custom Promise option altogether. If that causes any trouble for you, could you please let me know at #622?

Thanks :)

@octokit octokit locked and limited conversation to collaborators Oct 25, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants