Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should we implement PromiseKit? #12

Open
tylerstillwater opened this issue Apr 22, 2014 · 1 comment
Open

Should we implement PromiseKit? #12

tylerstillwater opened this issue Apr 22, 2014 · 1 comment
Labels

Comments

@tylerstillwater
Copy link
Contributor

Should we implement PromiseKit? It may make the usage of the Stretchr SDK even better. For example:

[stretchr readResourceAtPath:@"people/tyler"].then(^(STResource* resource){
  // do something
}).catch(^(NSError* error){
  // handle error
});

Multiple "then" methods can be chained, allowing the user-programmer to do async operations, in sequence, very easily.

This could also be used inside the SDK to implement our own functionality, resulting in cleaner code.

@matryer et al: thoughts?

@mxcl
Copy link

mxcl commented May 15, 2015

I'll happily help you integrate PromiseKit if you want it, it would be an entirely optional component. I have the required experience with integration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants