RACTargetQueueScheduler.h 772 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // RACTargetQueueScheduler.h
  3. // ReactiveObjC
  4. //
  5. // Created by Josh Abernathy on 6/6/13.
  6. // Copyright (c) 2013 GitHub, Inc. All rights reserved.
  7. //
  8. #import "RACQueueScheduler.h"
  9. NS_ASSUME_NONNULL_BEGIN
  10. /// A scheduler that enqueues blocks on a private serial queue, targeting an
  11. /// arbitrary GCD queue.
  12. @interface RACTargetQueueScheduler : RACQueueScheduler
  13. /// Initializes the receiver with a serial queue that will target the given
  14. /// `targetQueue`.
  15. ///
  16. /// name - The name of the scheduler. If nil, a default name will be used.
  17. /// targetQueue - The queue to target. Cannot be NULL.
  18. ///
  19. /// Returns the initialized object.
  20. - (instancetype)initWithName:(nullable NSString *)name targetQueue:(dispatch_queue_t)targetQueue;
  21. @end
  22. NS_ASSUME_NONNULL_END