FWPromise
@interface FWPromise : NSObject
框架约定类
-
Undocumented
Declaration
Objective-C
@property (nonatomic, class, strong) dispatch_queue_t _Nonnull completionQueue
-
Undocumented
Declaration
Objective-C
@property (nonatomic, class) NSError * _Nonnull defaultError
-
Undocumented
Declaration
Objective-C
@property (nonatomic, class) NSError * _Nonnull validationError
-
Undocumented
Declaration
Objective-C
@property (nonatomic, class) NSError * _Nonnull timeoutError
-
指定操作完成句柄初始化
Declaration
Objective-C
- (nonnull instancetype)initWithCompletion: (void (^_Nonnull __strong)( void (^_Nonnull __strong)(id _Nullable __strong)))completion;
-
指定操作成功和失败句柄初始化
Declaration
Objective-C
- (nonnull instancetype)initWithBlock: (void (^_Nonnull __strong)( void (^_Nonnull __strong)(id _Nullable __strong), void (^_Nonnull __strong)(NSError *_Nonnull __strong)))block;
-
指定操作成功、失败句柄和进度句柄初始化
Declaration
Objective-C
- (nonnull instancetype)initWithProgress: (void (^_Nonnull __strong)( void (^_Nonnull __strong)(id _Nullable __strong), void (^_Nonnull __strong)(NSError *_Nonnull __strong), void (^_Nonnull __strong)(double)))progress;
-
快速创建成功实例
Declaration
Objective-C
- (nonnull instancetype)initWithValue:(id _Nullable)value;
-
快速创建失败实例
Declaration
Objective-C
- (nonnull instancetype)initWithError:(NSError *_Nonnull)error;
-
Unavailable
Undocumented
Declaration
Objective-C
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
-
Unavailable
-init is unavailable
Undocumented
Declaration
Objective-C
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");