You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
session-ios/Signal/src/async/FutureUtil.h

16 lines
363 B
Objective-C

#import <Foundation/Foundation.h>
#import "Future.h"
@interface Future (FutureUtil)
-(void) thenDo:(void(^)(id result))callback;
-(void) catchDo:(void(^)(id error))catcher;
-(Future*) finally:(id(^)(Future* completed))callback;
-(Future*) then:(id(^)(id value))projection;
-(Future*) catch:(id(^)(id error))catcher;
-(Future*) thenCompleteOnMainThread;
@end