 	}
 
 	public var isDisposed: Bool {
-		return disposables.value == nil
+		return state.isDisposed
 	}
 
 	/// Initialize a `CompositeDisposable` containing the given sequence of

//  Copyright (c) 2014 GitHub. All rights reserved.
//

/// Represents something that can be “disposed”, usually associated with freeing
/// resources or canceling work.
public protocol Disposable: class {
	/// Whether this disposable has been disposed already.
	var isDisposed: Bool { get }

	/// Method for disposing of resources when appropriate.
	func dispose()
}

/// A type-erased disposable that forwards operations to an underlying disposable.

	}

	public func dispose() {
		return innerDisposable.dispose()
	}
}

