Inherits from NSObject
Conforms to RACSubscriber
Declared in RACPassthroughSubscriber.h
RACPassthroughSubscriber.m

Overview

Passes through all events to another subscriber while not disposed.

Instance Methods

didSubscribeWithDisposable:

Sends the subscriber a disposable that represents one of its subscriptions.

- (void)didSubscribeWithDisposable:(RACDisposable *)disposable

Discussion

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.h

initWithSubscriber:signal:disposable:

Initializes the receiver to pass through events until disposed.

- (instancetype)initWithSubscriber:(id<RACSubscriber>)subscriber signal:(RACSignal *)signal disposable:(RACCompoundDisposable *)disposable

Discussion

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.h

sendCompleted

Send completed to subscribers.

- (void)sendCompleted

Discussion

This terminates the subscription, and invalidates the subscriber (such that it cannot subscribe to anything else in the future).

Declared In

RACSubscriber.h

sendError:

Send the error to subscribers.

- (void)sendError:(NSError *)error

Discussion

error - The error to send. This can be nil.

This terminates the subscription, and invalidates the subscriber (such that it cannot subscribe to anything else in the future).

Declared In

RACSubscriber.h

sendNext:

Send the next value to subscribers.

- (void)sendNext:(id)value

Discussion

value - The value to send. This can be nil.

Declared In

RACSubscriber.h