IoSourceBackpressureStrategy

public enum IoSourceBackpressureStrategy : Int, Codable

Defines strategies for coping with IO sources that produce IO values more rapidly than specified in their currently recommended update rate.

  • Use a default strategy for publishing values: If no recommended update rate is assigned to the IO source, use the None strategy; otherwise use the Sample strategy.

    Declaration

    Swift

    case Default
  • Publish all values immediately. Note that this strategy ignores the recommended update rate assigned to the IO source.

    Declaration

    Swift

    case None
  • Publish the most recent values within periodic time intervals according to the recommended update rate assigned to the IO source. If no update rate is given, fall back to the None strategy.

    Declaration

    Swift

    case Sample
  • Only publish a value if a particular timespan has passed without it publishing another value. The timespan is determined by the recommended update rate assigned to the IO source. If no update rate is given, fall back to the None strategy.

    Declaration

    Swift

    case Throttle