A protocol indicating that an activity or action supports cancellation.
Calling ``Cancellable/cancel()`` frees up any allocated resources. It also stops side effects such as timers, network access, or disk I/O.
Members (2)
method · iOS 13.0+
store
Swift declaration
func store(in set: inout Set<AnyCancellable>)
Stores this cancellable instance in the specified set.
- Parameter set: The set in which to store this ``Cancellable``.
Omit the output parameters from the call. The result contains $ret and $out, with set inside $out.
method · iOS 13.0+
store
Swift declaration
func store<C>(in collection: inout C) where C : RangeReplaceableCollection, C.Element == AnyCancellable
Stores this cancellable instance in the specified collection.
- Parameter collection: The collection in which to store this ``Cancellable``.
Omit the output parameters from the call. The result contains $ret and $out, with collection inside $out.