Generic Instance Method

store(in:)

Stores this type-erasing cancellable instance in the specified collection.

Declaration

final func store<C>(in collection: inout C) where C : RangeReplaceableCollection, C.Element == AnyCancellable

Parameters

collection

The collection in which to store this AnyCancellable.

See Also

Storing AnyCancellable Instances

func store(in: inout Set<AnyCancellable>)

Stores this type-erasing cancellable instance in the specified set.