<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "XCTest",
  "identifier" : "/documentation/XCTest/XCTWaiterDelegate/waiter(_:didTimeoutWithUnfulfilledExpectations:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "XCTest"
    ],
    "preciseIdentifier" : "c:objc(pl)XCTWaiterDelegate(im)waiter:didTimeoutWithUnfulfilledExpectations:"
  },
  "title" : "waiter(_:didTimeoutWithUnfulfilledExpectations:)"
}
-->

# waiter(_:didTimeoutWithUnfulfilledExpectations:)

Invoked when not all waited on expectations are fulfilled during the timeout period.

```
optional func waiter(_ waiter: XCTWaiter, didTimeoutWithUnfulfilledExpectations unfulfilledExpectations: [XCTestExpectation])
```

## Parameters

`waiter`

The [`XCTWaiter`](/documentation/XCTest/XCTWaiter) reporting the timeout event.

`unfulfilledExpectations`

The expectations

## Discussion

If the delegate is an [`XCTestCase`](/documentation/XCTest/XCTestCase) instance, this will be reported as a test failure.

---

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)