Generic Instance Method

receive(subscriber:)

Implements the publisher protocol by accepting the subscriber if the output optional has a value, or terminating immediately with an empty subscription otherwise.

Declaration

func receive<S>(subscriber: S) where Wrapped == S.Input, S : Subscriber, S.Failure == Optional<Wrapped>.Publisher.Failure

Relationships

From Protocol