Structure

Subscribers.Demand

No overview available.

Declaration

Topics

Operator Functions

static func != (Subscribers.Demand, Int) -> Bool

Returns true if lhs and rhs are not equal. .unlimited is not equal to any integer.

static func != (Int, Subscribers.Demand) -> Bool

Returns true if lhs and rhs are not equal. .unlimited is not equal to any integer.

static func + (Subscribers.Demand, Subscribers.Demand) -> Subscribers.Demand

When adding any value to .unlimited, the result is .unlimited.

static func + (Subscribers.Demand, Int) -> Subscribers.Demand

When adding any value to .unlimited, the result is .unlimited.

static func += (inout Subscribers.Demand, Subscribers.Demand)

When adding any value to .unlimited, the result is .unlimited.

static func += (inout Subscribers.Demand, Int)

When adding any value to .unlimited, the result is .unlimited.

static func - (Subscribers.Demand, Subscribers.Demand) -> Subscribers.Demand

When subtracting any value (including .unlimited) from .unlimited, the result is still .unlimited. Subtracting unlimited from any value (except unlimited) results in .max(0). A negative demand is possible, but be aware that it is not usable when requesting values in a subscription.

static func - (Subscribers.Demand, Int) -> Subscribers.Demand

When subtracting any value from .unlimited, the result is still .unlimited. A negative demand is possible, but be aware that it is not usable when requesting values in a subscription.

static func -= (inout Subscribers.Demand, Subscribers.Demand)

When subtracting any value (including .unlimited) from .unlimited, the result is still .unlimited. Subtracting unlimited from any value (except unlimited) results in .max(0). A negative demand is possible, but be aware that it is not usable when requesting values in a subscription.

static func -= (inout Subscribers.Demand, Int)

When subtracting any value from .unlimited, the result is still .unlimited. A negative demand is possible, but be aware that it is not usable when requesting values in a subscription.

static func ... (Subscribers.Demand) -> PartialRangeFrom<Subscribers.Demand>

Returns a partial range extending upward from a lower bound.

static func ... (Subscribers.Demand) -> PartialRangeThrough<Subscribers.Demand>

Returns a partial range up to, and including, its upper bound.

static func ..< (Subscribers.Demand) -> PartialRangeUpTo<Subscribers.Demand>

Returns a partial range up to, but not including, its upper bound.

static func ..< (Subscribers.Demand, Subscribers.Demand) -> Range<Subscribers.Demand>

Returns a half-open range that contains its lower bound but not its upper bound.

static func < (Subscribers.Demand, Subscribers.Demand) -> Bool

If lhs is .unlimited, then the result is always false. If rhs is .unlimited then the result is always false. Otherwise, the two max values are compared.

static func <= (Subscribers.Demand, Subscribers.Demand) -> Bool

Returns a Boolean value indicating whether the value of the first argument is less than or equal to that of the second argument.

static func == (Subscribers.Demand, Int) -> Bool

Returns true if lhs and rhs are equal. .unlimited is not equal to any integer.

static func == (Int, Subscribers.Demand) -> Bool

Returns true if lhs and rhs are equal. .unlimited is not equal to any integer.

static func > (Subscribers.Demand, Subscribers.Demand) -> Bool

Returns a Boolean value indicating whether the value of the first argument is greater than that of the second argument.

static func >= (Subscribers.Demand, Subscribers.Demand) -> Bool

Returns a Boolean value indicating whether the value of the first argument is greater than or equal to that of the second argument.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software