SubscriptionType
extension SubscriptionType
-
Allow to add a subscription to a subscription collection, which is an abstraction for
DisposeBag
orSet<AnyCancellable
depending on your chosen reactive frameworkDeclaration
Swift
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) public func cancelled(by subscriptionCollection: inout Set<AnyCancellable>)
Parameters
subscriptionCollection
an abstraction for
DisposeBag
orSet<AnyCancellable
depending on your chosen reactive framework