RACPassthroughSubscriber.h 979 B

123456789101112131415161718192021222324252627282930
  1. //
  2. // RACPassthroughSubscriber.h
  3. // ReactiveCocoa
  4. //
  5. // Created by Justin Spahr-Summers on 2013-06-13.
  6. // Copyright (c) 2013 GitHub, Inc. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "RACSubscriber.h"
  10. @class RACCompoundDisposable;
  11. @class RACSignal;
  12. // A private subscriber that passes through all events to another subscriber
  13. // while not disposed.
  14. @interface RACPassthroughSubscriber : NSObject <RACSubscriber>
  15. // Initializes the receiver to pass through events until disposed.
  16. //
  17. // subscriber - The subscriber to forward events to. This must not be nil.
  18. // signal - The signal that will be sending events to the receiver.
  19. // disposable - When this disposable is disposed, no more events will be
  20. // forwarded. This must not be nil.
  21. //
  22. // Returns an initialized passthrough subscriber.
  23. - (instancetype)initWithSubscriber:(id<RACSubscriber>)subscriber signal:(RACSignal *)signal disposable:(RACCompoundDisposable *)disposable;
  24. @end