Rename SonarUtil file and method to Flipper
Summary: Rename SonarUtil file and method to Flipper Reviewed By: passy Differential Revision: D9920194 fbshipit-source-id: 3d1e360ccce613b7fbba10fb6b1fcaf0f15442a7
This commit is contained in:
committed by
Facebook Github Bot
parent
bc4e6705b7
commit
ab00f3360e
18
iOS/SonarKit/FlipperUtil.m
Normal file
18
iOS/SonarKit/FlipperUtil.m
Normal file
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
* Copyright (c) 2018-present, Facebook, Inc.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the LICENSE
|
||||
* file in the root directory of this source tree.
|
||||
*
|
||||
*/
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "FlipperPlugin.h"
|
||||
|
||||
void FlipperPerformBlockOnMainThread(void(^block)())
|
||||
{
|
||||
if ([NSThread isMainThread]) {
|
||||
block();
|
||||
} else {
|
||||
dispatch_async(dispatch_get_main_queue(), block);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user