BUQueueManager.h 801 B

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