RACPassthroughSubscriber Class Reference
| Inherits from | NSObject |
| Conforms to | RACSubscriber |
| Declared in | RACPassthroughSubscriber.h RACPassthroughSubscriber.m |
Instance Methods
didSubscribeWithDisposable:
Sends the subscriber a disposable that represents one of its subscriptions.
- (void)didSubscribeWithDisposable:(RACDisposable *)disposableDiscussion
A subscriber may receive multiple disposables if it gets subscribed to multiple signals; however, any error or completed events must terminate all subscriptions.
Declared In
RACSubscriber.hinitWithSubscriber:signal:disposable:
Initializes the receiver to pass through events until disposed.
- (instancetype)initWithSubscriber:(id<RACSubscriber>)subscriber signal:(RACSignal *)signal disposable:(RACCompoundDisposable *)disposableDiscussion
subscriber - The subscriber to forward events to. This must not be nil. signal - The signal that will be sending events to the receiver. disposable - When this disposable is disposed, no more events will be forwarded. This must not be nil.
Returns an initialized passthrough subscriber.
Declared In
RACPassthroughSubscriber.hsendCompleted
Send completed to subscribers.
- (void)sendCompletedDiscussion
This terminates the subscription, and invalidates the subscriber (such that it cannot subscribe to anything else in the future).
Declared In
RACSubscriber.h