feat:avoid iOS dealloc JSValue in main thread,this may cause crash in JavaScriptCore

This commit is contained in:
pengfeizhou
2021-01-06 11:56:30 +08:00
committed by osborn
parent 967ad27a22
commit 2100eff054
7 changed files with 29 additions and 8 deletions

View File

@@ -24,7 +24,6 @@
NS_ASSUME_NONNULL_BEGIN
@interface DoricAsyncResult <R> : NSObject
@property(nonatomic, strong) void (^resultCallback)(R result);
@property(nonatomic, strong) void (^exceptionCallback)(NSException *e);
@@ -39,6 +38,9 @@ NS_ASSUME_NONNULL_BEGIN
- (R)getResult;
- (R)waitUntilResult;
- (id)waitUntilResult:(id (^)(R result))transformer;
@end
NS_ASSUME_NONNULL_END