Latest 1.0.0
Homepage https://github.com/DanielTomlinson/DANPromise
License MIT
Platforms ios 7.0, requires ARC
Authors

A thread-safe, lightweight implementation of promises in Objective-C.

Installation

Installation through CocoaPods is recommended, although one may use git submodules too.

pod 'DANPromise'

Usage

DANDeferredValue *deferred = [DANDeferredValue deferredValue];
DANPromise *promise = [deferred promise];

[promise then:^(id result) {
    NSLog(@"Completed with result: %@", result);
}];

[promise fullfill:@"Hello"];

Latest podspec

{
    "name": "DANPromise",
    "version": "1.0.0",
    "summary": "A threadsafe, lightweight implementation of Promises in Objective-C",
    "description": "                           DANPromise is a lightweight implementation of Promises in Objective-C to make itnttttttttt         easy to cleanup asyncronous code.n",
    "homepage": "https://github.com/DanielTomlinson/DANPromise",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Daniel Tomlinson": "[email protected]"
    },
    "social_media_url": "http://twitter.com/DanToml",
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/DanielTomlinson/DANPromise.git",
        "tag": "1.0.0"
    },
    "source_files": [
        "Classes",
        "DANPromise/**/*.{h,m}"
    ],
    "public_header_files": "DANPromise/{DANPromise,DANDeferredValue}.h",
    "requires_arc": true
}

Pin It on Pinterest

Share This