FailureRate

public enum FailureRate

Enum representing the amount of failure which is acceptable in a SIMD parallel behavior (such as map and filter).

  • Expreses acceptable failure rate as a ratio. Must be => 0 and <= 1. For example .ratio(0.1) permits up to, but not more than, ten percent of the parallel operations to fail.

    Declaration

    Swift

    case ratio(Double)
  • Expresses acceptable failure rate as a count. Must be => 0 For example .count(2) permis up to, but not more than 2 of the parallel operations to fail.

    Declaration

    Swift

    case count(Int)
  • Convenience property expresssing that no failures are acceptable.

    Declaration

    Swift

    public static let none: FailureRate
  • Convenience property expresssing that total failure is acceptable.

    Declaration

    Swift

    public static let full: FailureRate