---
title: Cancellable
framework: combine
role: symbol
role_heading: Protocol
path: combine/cancellable
---

# Cancellable

A protocol indicating that an activity or action supports cancellation.

## Declaration

```swift
protocol Cancellable
```

## Mentioned in

Receiving and Handling Events with Combine Controlling Publishing with Connectable Publishers

## Overview

Overview Calling cancel() frees up any allocated resources. It also stops side effects such as timers, network access, or disk I/O.

## Topics

### Canceling actions

- [cancel()](combine/cancellable/cancel().md)

### Storing instances

- [store(in:)](combine/cancellable/store(in:)-35vnt.md)
- [store(in:)](combine/cancellable/store(in:)-95sfl.md)

### Instance Methods

- [storeWhileEntityActive(_:)](combine/cancellable/storewhileentityactive(_:).md)

## Relationships

### Inherited By

- [Subscription](combine/subscription.md)

### Conforming Types

- [AnyCancellable](combine/anycancellable.md)
- [Subscribers.Assign](combine/subscribers/assign.md)
- [Subscribers.Sink](combine/subscribers/sink.md)

## See Also

### Publishers

- [Publisher](combine/publisher.md)
- [Publishers](combine/publishers.md)
- [AnyPublisher](combine/anypublisher.md)
- [Published](combine/published.md)
- [AnyCancellable](combine/anycancellable.md)
