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.

See Also

Working with Subscribers

func receive<S>(subscriber: S)

Attaches the specified subscriber to this publisher.

Required.

func subscribe<S>(S)

Attaches the specified subscriber to this publisher.