Generic Instance Method

subscribe(_:)

Attaches the specified subject to this publisher.

Declaration

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

Parameters

subject

The subject to attach to this publisher.