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 Subscribers.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.

enum Subscribers.Completion

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