Skip to content

Should we implement PromiseKit? #12

@tylerstillwater

Description

@tylerstillwater
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?

Activity

mxcl

mxcl commented on May 15, 2015

@mxcl

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @mxcl@tylerstillwater

        Issue actions

          Should we implement PromiseKit? · Issue #12 · stretchr/sdk-cocoa