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.