---
title: "waiter(_:didTimeoutWithUnfulfilledExpectations:)"
framework: xctest
role: symbol
role_heading: Instance Method
path: "xctest/xctwaiterdelegate/waiter(_:didtimeoutwithunfulfilledexpectations:)"
---

# waiter(_:didTimeoutWithUnfulfilledExpectations:)

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

## Declaration

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

## Parameters

- `waiter`: The doc://com.apple.xctest/documentation/XCTest/XCTWaiter reporting the timeout event.
- `unfulfilledExpectations`: The expectations

## Discussion

Discussion If the delegate is an XCTestCase instance, this will be reported as a test failure.

## See Also

### Timeout Events

- [nestedWaiter(_:wasInterruptedByTimedOutWaiter:)](xctest/xctwaiterdelegate/nestedwaiter(_:wasinterruptedbytimedoutwaiter:).md)
