Contents

ConnectablePublisher

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

Declaration

protocol ConnectablePublisher<Output, Failure> : Publisher

Mentioned in

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

Connecting automatically

See Also

Connectable Publishers