Inherits from RACDisposable : NSObject
Declared in RACCompoundDisposable.h

Overview

If addDisposable: is called after the compound disposable has been disposed of, the given disposable is immediately disposed. This allows a compound disposable to act as a stand-in for a disposable that will be delivered asynchronously.

Tasks

Class Methods

compoundDisposable

+ (instancetype)compoundDisposable
Discussion

Creates and returns a new compound disposable.

Declared In

RACCompoundDisposable.h

compoundDisposableWithDisposables:

+ (instancetype)compoundDisposableWithDisposables:(NSArray *)disposables
Discussion

Creates and returns a new compound disposable containing the given disposables.

Declared In

RACCompoundDisposable.h

Instance Methods

addDisposable:

- (void)addDisposable:(RACDisposable *)disposable
Discussion

disposable - The disposable to add. This may be nil, in which case nothing happens.

Declared In

RACCompoundDisposable.h

removeDisposable:

- (void)removeDisposable:(RACDisposable *)disposable
Discussion

disposable - The disposable to remove. This argument may be nil (to make the use of weak references easier).

Declared In

RACCompoundDisposable.h