Inherits from NSObject
Conforms to RACSubscriber
Declared in RACSubscriber+Private.h
RACSubscriber.m

Overview

A simple block-based subscriber.

Class Methods

subscriberWithNext:error:completed:

Creates a new subscriber with the given blocks.

+ (instancetype)subscriberWithNext:(void ( ^ ) ( id x ))next error:(void ( ^ ) ( NSError *error ))error completed:(void ( ^ ) ( void ))completed

Declared In

RACSubscriber+Private.h

Instance Methods

didSubscribeWithDisposable:

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

- (void)didSubscribeWithDisposable:(RACDisposable *)d

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

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 *)e

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