<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Combine",
  "identifier" : "/documentation/Combine/Cancellable",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "Combine"
    ],
    "preciseIdentifier" : "s:7Combine11CancellableP"
  },
  "title" : "Cancellable"
}
-->

# Cancellable

A protocol indicating that an activity or action supports cancellation.

```
protocol Cancellable
```

## Overview

Calling [`cancel()`](/documentation/Combine/Cancellable/cancel()) frees up any allocated resources. It also stops side effects such as timers, network access, or disk I/O.

## Topics

### Canceling actions

[`cancel()`](/documentation/Combine/Cancellable/cancel())

Cancel the activity.

### Storing instances

[`store(in:)`](/documentation/Combine/Cancellable/store(in:)-35vnt)

Stores this cancellable instance in the specified collection.

[`store(in:)`](/documentation/Combine/Cancellable/store(in:)-95sfl)

Stores this cancellable instance in the specified set.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)