AnyCancellable
extension AnyCancellable
-
Stores this type-erasing cancellable instance in the specified set.
Declaration
Swift
public func store(in set: inout Set<AnyCancelable>)
Parameters
set
The set in which to store this
AnyCancellable
. -
Stores this type-erasing cancellable instance in the specified collection.
Declaration
Swift
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) final public func store<C>(in collection: inout C) where C : RangeReplaceableCollection, C.Element == AnyCancelable
Parameters
collection
The collection in which to store this
AnyCancellable
.