max(_:)
Creates a demand for the given maximum number of elements.
Declaration
static func max(_ value: Int) -> Subscribers.DemandParameters
- value:
The maximum number of elements. Providing a negative value for this parameter results in a fatal error.
Discussion
The publisher is free to send fewer than the requested maximum number of elements.