<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "XCTest",
  "identifier" : "/documentation/XCTest/XCTWaiter/Result",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "XCTest"
    ],
    "preciseIdentifier" : "c:@E@XCTWaiterResult"
  },
  "title" : "XCTWaiter.Result"
}
-->

# XCTWaiter.Result

Result states returned by a waiter when it completes, times out, fails, or is interrupted.

```
enum Result
```

## Topics

### Result States

[`case completed`](/documentation/XCTest/XCTWaiter/Result/completed)

All of the waiter’s expectations were fulfilled successfully.

[`case timedOut`](/documentation/XCTest/XCTWaiter/Result/timedOut)

The waiter timed out before all of its expectations were fulfilled.

[`case incorrectOrder`](/documentation/XCTest/XCTWaiter/Result/incorrectOrder)

The waiter’s expectations were not fulfilled in the required order.

[`case invertedFulfillment`](/documentation/XCTest/XCTWaiter/Result/invertedFulfillment)

An inverted expectation was fulfilled.

[`case interrupted`](/documentation/XCTest/XCTWaiter/Result/interrupted)

The waiter was interrupted prior to its expectations being fulfilled or timing out.

### Initializers

[`init?(rawValue: Int)`](/documentation/XCTest/XCTWaiter/Result/init(rawValue:))

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

[`Sendable`](/documentation/Swift/Sendable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)