Instance Method

receive(completion:)

Tells the subscriber that the publisher has completed publishing, either normally or with an error.

Required.

Declaration

func receive(completion: Subscribers.Completion<Self.Failure>)

Parameters

completion

A Completion case indicating whether publishing completed normally or with an error.

See Also

Receiving Life Cycle Events

func receive(subscription: Subscription)

Tells the subscriber that it has successfully subscribed to the publisher and may request items.

Required.

Beta
enum Subscribers.Completion

A signal that a publisher doesn’t produce additional elements, either due to normal completion or an error.

Beta

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software