Contents

receive()

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

Declaration

func receive() -> Subscribers.Demand

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.

See Also

Receiving elements