mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-04 10:30:42 +00:00

git-subtree-dir: submodules/MtProtoKit git-subtree-mainline: 3b155750f5a4894ff3dedf1860a37e94e0ea9571 git-subtree-split: 14ab734b977fd4f1686a2a13415f6a4c9b9fdd6d
20 lines
405 B
Objective-C
20 lines
405 B
Objective-C
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
@interface MTQueue : NSObject
|
|
|
|
- (instancetype)initWithName:(const char *)name;
|
|
|
|
+ (MTQueue *)mainQueue;
|
|
+ (MTQueue *)concurrentDefaultQueue;
|
|
+ (MTQueue *)concurrentLowQueue;
|
|
|
|
- (dispatch_queue_t)nativeQueue;
|
|
|
|
- (bool)isCurrentQueue;
|
|
- (void)dispatchOnQueue:(dispatch_block_t)block;
|
|
- (void)dispatchOnQueue:(dispatch_block_t)block synchronous:(bool)synchronous;
|
|
|
|
@end
|