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:
Pritesh Nandgaonkar
2018-09-19 04:43:00 -07:00
committed by Facebook Github Bot
parent bc4e6705b7
commit ab00f3360e
3 changed files with 9 additions and 9 deletions

View 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);
}
}