---
title: ConnectablePublisher
framework: combine
role: symbol
role_heading: Protocol
path: combine/connectablepublisher
---

# ConnectablePublisher

A publisher that provides an explicit means of connecting and canceling publication.

## Declaration

```swift
protocol ConnectablePublisher<Output, Failure> : Publisher
```

## Mentioned in

Controlling Publishing with Connectable Publishers Replacing Foundation Timers with Timer Publishers

## Overview

Overview Use a ConnectablePublisher when you need to perform additional configuration or setup prior to producing any elements. This publisher doesn’t produce any elements until you call its connect() method. Use makeConnectable() to create a ConnectablePublisher from any publisher whose failure type is Never.

## Topics

### Performing explicit connections

- [connect()](combine/connectablepublisher/connect().md)

### Connecting automatically

- [autoconnect()](combine/connectablepublisher/autoconnect().md)

## Relationships

### Inherits From

- [Publisher](combine/publisher.md)

### Conforming Types

- [Publishers.MakeConnectable](combine/publishers/makeconnectable.md)
- [Publishers.Multicast](combine/publishers/multicast.md)

## See Also

### Connectable Publishers

- [Controlling Publishing with Connectable Publishers](combine/controlling-publishing-with-connectable-publishers.md)
