TestsTested | ✓ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Sep 2015 |
Maintained by Daniel Tomlinson.
A threadsafe, lightweight implementation of Promises in Objective-C.
I reccomend installation through CocoaPods, although you can use git submodules if you wish.
pod 'DANPromise'
DANDeferredValue *deferred = [DANDeferredValue deferredValue];
DANPromise *promise = [deferred promise];
[promise then:^(id result) {
NSLog(@"Completed with result: %@", result);
}];
[promise fullfill:@"Hello"];