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
a
andb
,a == b
implies thata != b
isfalse
.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
andb
,a != b
implies thata == b
isfalse
.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) -> Bool
Parameters
lhs
A value to compare.
rhs
Another value to compare.
-
Declaration
Swift
public func hash(into hasher: inout Hasher)