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 }
-
Returns a Boolean value indicating whether two values are equal.
Equality is the inverse of inequality. For any values
aandb,a == bimplies thata != bisfalse.Declaration
Swift
public static func == (lhs: PromiseTimeoutError, rhs: PromiseTimeoutError) -> BoolParameters
lhsA value to compare.
rhsAnother value to compare.
-
Returns a Boolean value indicating whether two values are not equal.
Inequality is the inverse of equality. For any values
aandb,a != bimplies thata == bisfalse.This is the default implementation of the not-equal-to operator (
!=) for any type that conforms toEquatable.Declaration
Swift
public static func != (lhs: PromiseTimeoutError, rhs: PromiseTimeoutError) -> BoolParameters
lhsA value to compare.
rhsAnother value to compare.
-
Declaration
Swift
public func hash(into hasher: inout Hasher)
View on GitHub
PromiseTimeoutError Enumeration Reference