Inherits from NSObject
Declared in RACDisposable.h

Overview

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

Tasks

Properties

disposed

Whether the receiver has been 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

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

- (RACScopedDisposable *)asScopedDisposable

Discussion

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

Declared In

RACDisposable.h

dispose

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

- (void)dispose

Discussion

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

Declared In

RACDisposable.h