diff --git a/Sources/Core/Disposables.swift b/Sources/Core/Disposables.swift index 16725bb..0c3af29 100644 --- a/Sources/Core/Disposables.swift +++ b/Sources/Core/Disposables.swift @@ -21,3 +21,9 @@ class RXRACDisposable: RACDisposable { self._bag = nil } } + +extension Disposable { + public func asRACDisposable() -> RACDisposable { + RXRACDisposable(self) + } +}