29 lines
772 B
Objective-C
29 lines
772 B
Objective-C
//
|
|
// RACTargetQueueScheduler.h
|
|
// ReactiveObjC
|
|
//
|
|
// Created by Josh Abernathy on 6/6/13.
|
|
// Copyright (c) 2013 GitHub, Inc. All rights reserved.
|
|
//
|
|
|
|
#import "RACQueueScheduler.h"
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
/// A scheduler that enqueues blocks on a private serial queue, targeting an
|
|
/// arbitrary GCD queue.
|
|
@interface RACTargetQueueScheduler : RACQueueScheduler
|
|
|
|
/// Initializes the receiver with a serial queue that will target the given
|
|
/// `targetQueue`.
|
|
///
|
|
/// name - The name of the scheduler. If nil, a default name will be used.
|
|
/// targetQueue - The queue to target. Cannot be NULL.
|
|
///
|
|
/// Returns the initialized object.
|
|
- (instancetype)initWithName:(nullable NSString *)name targetQueue:(dispatch_queue_t)targetQueue;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|