SubscriptionReferenceBag

public class SubscriptionReferenceBag

A class to hold subscriptions to SubscriptionReferenceType. Very similar to autoreleasepool but specifically for disposable types. Disposes of all held subscriptions when deallocated or dispose() is called.

  • Dispose of all subscriptions in the bag.

    Declaration

    Swift

    public func dispose()