Inherits from RACSignal : RACStream : NSObject
Declared in RACReturnSignal.h
RACReturnSignal.m

Tasks

Other Methods

Other Methods

Class Methods

return:

Returns a signal that immediately sends the given value and then completes.

+ (RACSignal *)return:(id)value

Declared In

RACSignal.h

Instance Methods

name

The name of the stream. This is for debugging/human purposes only.

- (NSString *)name

Declared In

RACStream.h

setName:

The name of the stream. This is for debugging/human purposes only.

- (void)setName:(NSString *)name

Declared In

RACStream.h

subscribe:

Subscribes subscriber to changes on the receiver. The receiver defines which events it actually sends and in what situations the events are sent.

- (RACDisposable *)subscribe:(id<RACSubscriber>)subscriber

Discussion

Subscription will always happen on a valid RACScheduler. If the [RACScheduler currentScheduler] cannot be determined at the time of subscription (e.g., because the calling code is running on a GCD queue or NSOperationQueue), subscription will occur on a private background scheduler. On the main thread, subscriptions will always occur immediately, with a [RACScheduler currentScheduler] of [RACScheduler mainThreadScheduler].

This method must be overridden by any subclasses.

Returns nil or a disposable. You can call [RACDisposable dispose] if you need to end your subscription before it would “naturally” end, either by completing or erroring. Once the disposable has been disposed, the subscriber won’t receive any more events from the subscription.

Declared In

RACSignal.h