Conforms to NSObject
Declared in RACSubscriber.h

Overview

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

  • – sendNext:

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

    required method
  • – sendError:

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

    required method
  • – sendCompleted

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

    required method
  • – didSubscribeWithDisposable:

    A subscriber may receive multiple disposables if it gets subscribed to multiple signals; however, any error or completed events must terminate all subscriptions.

    required method

Instance Methods

didSubscribeWithDisposable:

- (void)didSubscribeWithDisposable:(RACCompoundDisposable *)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

sendCompleted

- (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:

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

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

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

Declared In

RACSubscriber.h