RACTargetQueueScheduler.h 706 B

12345678910111213141516171819202122232425
  1. //
  2. // RACTargetQueueScheduler.h
  3. // ReactiveCocoa
  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. /// A scheduler that enqueues blocks on a private serial queue, targeting an
  10. /// arbitrary GCD queue.
  11. @interface RACTargetQueueScheduler : RACQueueScheduler
  12. /// Initializes the receiver with a serial queue that will target the given
  13. /// `targetQueue`.
  14. ///
  15. /// name - The name of the scheduler. If nil, a default name will be used.
  16. /// targetQueue - The queue to target. Cannot be NULL.
  17. ///
  18. /// Returns the initialized object.
  19. - (id)initWithName:(NSString *)name targetQueue:(dispatch_queue_t)targetQueue;
  20. @end