Generic Instance Method

subscribe(_:)

Attaches the specified Subscriber to this Publisher.

Declaration

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

Parameters

subscriber

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