A thread-safe, lightweight implementation of promises in Objective-C.
Installation through CocoaPods is recommended, although one may use git submodules too.
pod 'DANPromise'
DANDeferredValue *deferred = [DANDeferredValue deferredValue];
DANPromise *promise = [deferred promise];
[promise then:^(id result) {
NSLog(@"Completed with result: %@", result);
}];
[promise fullfill:@"Hello"];