PromiseTimeoutError

public enum PromiseTimeoutError<Error> : Swift.Error, CustomNSError
extension PromiseTimeoutError: Equatable where Error: Equatable
extension PromiseTimeoutError: Hashable where Error: Hashable

The error type returned from Promise.timeout.

See also

Promise.timeout.
  • The promise did not resolve within the given interval.

    Declaration

    Swift

    case timedOut
  • The promise was rejected with an error.

    Declaration

    Swift

    case rejected(Error)
  • Declaration

    Swift

    public var errorUserInfo: [String : Any] { get }

Available where Error: Equatable

  • Returns a Boolean value indicating whether two values are equal.

    Equality is the inverse of inequality. For any values a and b, a == b implies that a != b is false.

    Declaration

    Swift

    public static func == (lhs: PromiseTimeoutError, rhs: PromiseTimeoutError) -> Bool

    Parameters

    lhs

    A value to compare.

    rhs

    Another value to compare.

  • Returns a Boolean value indicating whether two values are not equal.

    Inequality is the inverse of equality. For any values a and b, a != b implies that a == b is false.

    This is the default implementation of the not-equal-to operator (!=) for any type that conforms to Equatable.

    Declaration

    Swift

    public static func != (lhs: PromiseTimeoutError, rhs: PromiseTimeoutError) -> Bool

    Parameters

    lhs

    A value to compare.

    rhs

    Another value to compare.

Available where Error: Hashable

  • Declaration

    Swift

    public func hash(into hasher: inout Hasher)