Instance Method

receive(_:)

Tells the subscriber that the publisher has produced an element.

Required.

Declaration

func receive(_ input: Self.Input) -> Subscribers.Demand

Parameters

input

The published element.

Return Value

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

See Also

Receiving Elements

func receive() -> Subscribers.Demand

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