Contents

receive(subscriber:)

Implements the Publisher protocol by accepting the subscriber and immediately publishing the optional’s value if it has one, or finishing normally if it doesn’t.

Declaration

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

Parameters

  • subscriber:

    The subscriber to add.