Cancelling AnySubscriber

Hi,

A couple of questions regarding AnySubscriber in Combine.

1) Is it possible to call cancel on the subscription for an AnySubscriber? I don’t see any way to get the subscription object itself.

2) If there is a way to cancel the AnySubscriber does that also cause the wrapped subscriber (the non-type-erased subscriber) to also be cancelled?

The reason I ask the 2nd question is that I’d like to reuse the original non-type-erased subscriber but as I understand once a subscription has been cancelled, you cannot use the subscriber to resubscribe. Please correct me if I am mistaken about this.

Thank hyou.
  • Jon

Cancelling AnySubscriber
 
 
Q