Instance Method

receive()

Tells the subscriber that a publisher of void elements is ready to receive further requests.

Declaration

func receive() -> Subscribers.Demand
Available when Input is Void.

Return Value

A Subscribers.Demand instance indicating how many more elements the subscriber expects to receive.

Discussion

Use Void inputs and outputs when you want to signal that an event has occurred, but don’t need to send the event itself.