Inherits from NSObject
Declared in RACDisposable.h

Overview

A disposable encapsulates the work necessary to tear down and cleanup a subscription.

Tasks

Properties

disposed

@property (atomic, assign, getter=isDisposed, readonly) BOOL disposed
Discussion

Whether the receiver has been disposed.

Use of this property is discouraged, since it may be set to YES concurrently at any time.

This property is not KVO-compliant.

Declared In

RACDisposable.h

Class Methods

disposableWithBlock:

+ (instancetype)disposableWithBlock:(void ( ^ ) ( void ))block

Instance Methods

asScopedDisposable

- (RACScopedDisposable *)asScopedDisposable
Discussion

Returns a new disposable which will dispose of this disposable when it gets dealloc’d.

Declared In

RACDisposable.h

dispose

- (void)dispose
Discussion

Performs the disposal work. Can be called multiple times, though subsequent calls won’t do anything.

Declared In

RACDisposable.h