// // Copyright (c) 2018 Open Whisper Systems. All rights reserved. // #import NS_ASSUME_NONNULL_BEGIN // The block is executed immediately if called from the // main thread; otherwise it is dispatched async to the // main thread. void DispatchMainThreadSafe(dispatch_block_t block); // The block is executed immediately if called from the // main thread; otherwise it is dispatched sync to the // main thread. void DispatchSyncMainThreadSafe(dispatch_block_t block); NS_ASSUME_NONNULL_END