mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
35a2470cb7
// FREEBIE
22 lines
735 B
Objective-C
22 lines
735 B
Objective-C
//
|
|
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
// We often use notifications as way to publish events.
|
|
//
|
|
// We never need these events to be received synchronously,
|
|
// so we should always send them asynchronously to avoid any
|
|
// possible risk of deadlock. These methods also ensure that
|
|
// the notifications are always fired on the main thread.
|
|
@interface NSNotificationCenter (OWS)
|
|
|
|
- (void)postNotificationNameAsync:(NSNotificationName)name object:(nullable id)object;
|
|
- (void)postNotificationNameAsync:(NSNotificationName)name
|
|
object:(nullable id)object
|
|
userInfo:(nullable NSDictionary *)userInfo;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|