We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The shared verb between this method and Disposable.dispose() makes them appear extremely similar in behaviour.
I suggest RxSwift's .disposed(by:)
.disposed(by:)
The text was updated successfully, but these errors were encountered:
Good idea @ibsh! I've added store(in:) family of methods that are more aligned with Apple's Combine in the latest release.
store(in:)
extension Disposable { public func dispose(in disposeBag: DisposeBagProtocol) { disposeBag.add(disposable: self) } public func store(in disposeBag: DisposeBagProtocol) { disposeBag.add(disposable: self) } public func store<C>(in collection: inout C) where C: RangeReplaceableCollection, C.Element == AnyCancellable { collection.append(AnyCancellable(self)) } public func store(in set: inout Set<AnyCancellable>) { set.insert(AnyCancellable(self)) } }
Sorry, something went wrong.
No branches or pull requests
The shared verb between this method and Disposable.dispose() makes them appear extremely similar in behaviour.
I suggest RxSwift's
.disposed(by:)
The text was updated successfully, but these errors were encountered: