mirror of https://github.com/oxen-io/session-ios
				
				
				
			
			You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			30 lines
		
	
	
		
			729 B
		
	
	
	
		
			Objective-C
		
	
			
		
		
	
	
			30 lines
		
	
	
		
			729 B
		
	
	
	
		
			Objective-C
		
	
| //
 | |
| //  Copyright (c) 2017 Open Whisper Systems. All rights reserved.
 | |
| //
 | |
| 
 | |
| #import "NSNotificationCenter+OWS.h"
 | |
| 
 | |
| NS_ASSUME_NONNULL_BEGIN
 | |
| 
 | |
| @implementation NSNotificationCenter (OWS)
 | |
| 
 | |
| - (void)postNotificationNameAsync:(NSNotificationName)name object:(nullable id)object
 | |
| {
 | |
|     dispatch_async(dispatch_get_main_queue(), ^{
 | |
|         [self postNotificationName:name object:object];
 | |
|     });
 | |
| }
 | |
| 
 | |
| - (void)postNotificationNameAsync:(NSNotificationName)name
 | |
|                            object:(nullable id)object
 | |
|                          userInfo:(nullable NSDictionary *)userInfo
 | |
| {
 | |
|     dispatch_async(dispatch_get_main_queue(), ^{
 | |
|         [self postNotificationName:name object:object userInfo:userInfo];
 | |
|     });
 | |
| }
 | |
| 
 | |
| @end
 | |
| 
 | |
| NS_ASSUME_NONNULL_END
 |