Skip to content

Commit

Permalink
add Disposable.asRACDisposable() extension method
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-makarov committed Jul 10, 2024
1 parent 6a8dd15 commit 5f1068b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Sources/Core/Disposables.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,9 @@ class RXRACDisposable: RACDisposable {
self._bag = nil
}
}

extension Disposable {
public func asRACDisposable() -> RACDisposable {
RXRACDisposable(self)
}
}

0 comments on commit 5f1068b

Please sign in to comment.