Contents

Subject

A publisher that exposes a method for outside callers to publish elements.

Declaration

protocol Subject<Output, Failure> : AnyObject, Publisher

Mentioned in

Overview

A subject is a publisher that you can use to ”inject” values into a stream, by calling its send(_:) method. This can be useful for adapting existing imperative code to the Combine model.

Topics

Delivering elements to subscribers

Delivering life cycle events to subscribers

See Also

Subjects