mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
16 lines
363 B
Objective-C
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
|