Inherits from RACSequence : RACStream : NSObject
Declared in RACDynamicSequence.h

Overview

Private class that implements a sequence dynamically using blocks.

Tasks

  • + sequenceWithLazyDependency:headBlock:tailBlock:

    Returns a sequence which evaluates dependencyBlock only once, the first time either headBlock or tailBlock is evaluated. The result of dependencyBlock will be passed into headBlock and tailBlock when invoked.

Class Methods

sequenceWithLazyDependency:headBlock:tailBlock:

Returns a sequence which evaluates dependencyBlock only once, the first time either headBlock or tailBlock is evaluated. The result of dependencyBlock will be passed into headBlock and tailBlock when invoked.

+ (RACSequence *)sequenceWithLazyDependency:(id ( ^ ) ( void ))dependencyBlock headBlock:(id ( ^ ) ( id dependency ))headBlock tailBlock:(RACSequence *( ^ ) ( id dependency ))tailBlock

Discussion

Returns a sequence which evaluates dependencyBlock only once, the first time either headBlock or tailBlock is evaluated. The result of dependencyBlock will be passed into headBlock and tailBlock when invoked.

Declared In

RACDynamicSequence.h