If I have a Set of AnyCancellable:
var observations: Set<AnyCancellable> = []
What's the difference between removing all the objects from the set:
observations.removeAll()
or cancel each subscription:
observations.forEach { $0.cancel() }
do they have the same effect? or in case that there is a strong reference in any of the subscription if .removeAll() is called the strong references will be not eliminated?
In case that they have the same effect I guess it will be a good practice to use the first approach as you don't need to traverse all the Set.