Skip to content

Commit cb1bba9

Browse files
committed
Updated old API is now a wrapper for new API
1 parent 4e2498a commit cb1bba9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RxSwift/Disposables/DisposeBag.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ extension Disposable {
1313
///
1414
/// - parameter bag: `DisposeBag` to add `self` to.
1515
public func addDisposableTo(_ bag: DisposeBag) {
16-
bag.insert(self)
16+
disposed(by: bag)
1717
}
1818

1919
/// Adds `self` to `bag`

0 commit comments

Comments
 (0)