mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
20 lines
463 B
Objective-C
20 lines
463 B
Objective-C
#import <Foundation/Foundation.h>
|
|
|
|
@interface SQueue : NSObject
|
|
|
|
+ (SQueue *)mainQueue;
|
|
+ (SQueue *)concurrentDefaultQueue;
|
|
+ (SQueue *)concurrentBackgroundQueue;
|
|
|
|
+ (SQueue *)wrapConcurrentNativeQueue:(dispatch_queue_t)nativeQueue;
|
|
|
|
- (void)dispatch:(dispatch_block_t)block;
|
|
- (void)dispatchSync:(dispatch_block_t)block;
|
|
- (void)dispatch:(dispatch_block_t)block synchronous:(bool)synchronous;
|
|
|
|
- (dispatch_queue_t)_dispatch_queue;
|
|
|
|
- (bool)isCurrentQueue;
|
|
|
|
@end
|