fix:iOS Runloop cannot exit and other issues
This commit is contained in:
@@ -103,6 +103,9 @@ - (instancetype)init {
|
||||
|
||||
- (void)teardown {
|
||||
_destroyed = YES;
|
||||
//To ensure runloop continue.
|
||||
[self ensureRunOnJSThread:^{
|
||||
}];
|
||||
}
|
||||
|
||||
- (void)ensureRunOnJSThread:(dispatch_block_t)block {
|
||||
|
Reference in New Issue
Block a user