Generic Instance Method

output(in:)

Publishes elements specified by their range in the sequence of published elements.

Declaration

func output<R>(in range: R) -> Publishers.Output<Publishers.Zip3<A, B, C>> where R : RangeExpression, R.Bound == Int

Parameters

range

A range that indicates which elements to publish.

Return Value

A publisher that publishes elements specified by a range.

Discussion

After all elements are published, the publisher finishes normally. If the publisher completes normally or with an error before producing all the elements in the range, it doesn’t publish the remaining elements.