SubscriptionType

extension SubscriptionType
  • Allow to add a subscription to a subscription collection, which is an abstraction for DisposeBag or Set<AnyCancellable depending on your chosen reactive framework

    Declaration

    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 or Set<AnyCancellable depending on your chosen reactive framework