Inherits from NSObject
Declared in RACDisposable.h
RACDisposable.m

Overview

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

Properties

disposed

Whether the receiver has been disposed.

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

Discussion

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

Instance Methods

asScopedDisposable

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

- (RACScopedDisposable *)asScopedDisposable

Declared In

RACDisposable.h

dispose

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

- (void)dispose

Declared In

RACDisposable.h