---
title: MTLCommandBufferError.Code.timeout
framework: metal
role: symbol
role_heading: Case
path: metal/mtlcommandbuffererror-swift.struct/code/timeout
---

# MTLCommandBufferError.Code.timeout

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

## Declaration

```swift
case timeout
```

## 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

### Error codes

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