Generic Instance Method


Attaches the specified Subscriber to this Publisher.


func subscribe<S>(_ subject: S) -> AnyCancellable where S : Subject, Self.Failure == S.Failure, Self.Output == S.Output



The subscriber to attach to this Publisher. once attached it can begin to receive values.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software