Conforms to NSObject
Declared in RACSubscriber.h

Overview

Represents any object which can directly receive values from a RACSignal.

You generally shouldn’t need to implement this protocol. [RACSignal createSignal:], RACSignal’s subscription methods, or RACSubject should work for most uses.

Implementors of this protocol may receive messages and values from multiple threads simultaneously, and so should be thread-safe. Subscribers will also be weakly referenced so implementations must allow that.

Tasks

Instance Methods

didSubscribeWithDisposable:

- (void)didSubscribeWithDisposable:(RACCompoundDisposable *)disposable
Discussion

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

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

sendCompleted

- (void)sendCompleted
Discussion

Sends completed to subscribers.

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

Declared In

RACSubscriber.h

sendError:

- (void)sendError:(NSError *)error
Discussion

Sends the error to subscribers.

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:

- (void)sendNext:(id)value
Discussion

Sends the next value to subscribers.

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

Declared In

RACSubscriber.h