admin
2022-09-04 fa05f89529e05078b29606e4beda3de5cfdce485
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//
//  BUQueueManager.h
//  BUFoundation
//
//  Created by Rush.D.Xzj on 2021/8/6.
//
 
#import <Foundation/Foundation.h>
#import "BUQueueManagerConfig.h"
 
NS_ASSUME_NONNULL_BEGIN
 
 
typedef NS_ENUM(NSInteger, BUHierarchy) {
    BUHierarchy_BUAdSDK,
    BUHierarchy_BUFoundation,
    BUHierarchy_BURelyFoundation,
    BUHierarchy_BUCore,
};
 
@interface BUQueueManager : NSObject
 
@property (nonatomic, strong, readonly) BUQueueManagerConfig *config;
 
- (void)updateConfig:(BUQueueManagerConfig *)config;
 
 
- (dispatch_queue_t)serialQueueWithHierarchy:(BUHierarchy)hierarchy suffixLabel:(NSString *)suffixLabel;
- (dispatch_queue_t)concurrentQueueWithHierarchy:(BUHierarchy)hierarchy suffixLabel:(NSString *)suffixLabel;
 
#pragma mark - Signal
+ (instancetype)sharedInstance;
@end
 
NS_ASSUME_NONNULL_END