---
title: timeout
framework: metal
role: symbol
role_heading: Type Property
path: metal/mtlcommandbuffererror-swift.struct/timeout
---

# timeout

An error code that indicates the system interrupted and terminated the command buffer before it finished running.

## Declaration

```swift
static var timeout: MTLCommandBufferError.Code { get }
```

## Discussion

Discussion Possible causes include: The commands in the buffer took more time to run than the system allows. The command buffer timed out waiting for another workload to signal an MTLEvent.

## See Also

### Errors codes

- [none](metal/mtlcommandbuffererror-swift.struct/none.md)
- [pageFault](metal/mtlcommandbuffererror-swift.struct/pagefault.md)
- [notPermitted](metal/mtlcommandbuffererror-swift.struct/notpermitted.md)
- [outOfMemory](metal/mtlcommandbuffererror-swift.struct/outofmemory.md)
- [invalidResource](metal/mtlcommandbuffererror-swift.struct/invalidresource.md)
- [memoryless](metal/mtlcommandbuffererror-swift.struct/memoryless.md)
- [deviceRemoved](metal/mtlcommandbuffererror-swift.struct/deviceremoved.md)
- [stackOverflow](metal/mtlcommandbuffererror-swift.struct/stackoverflow.md)
- [accessRevoked](metal/mtlcommandbuffererror-swift.struct/accessrevoked.md)
- [internal](metal/mtlcommandbuffererror-swift.struct/internal.md)
- [MTLCommandBufferError.Code](metal/mtlcommandbuffererror-swift.struct/code.md)
