---
title: MLTaskState.cancelling
framework: coreml
role: symbol
role_heading: Case
path: coreml/mltaskstate/cancelling
---

# MLTaskState.cancelling

The state of a machine learning task that’s in mid-termination, before it could finish successfully.

## Declaration

```swift
case cancelling
```

## See Also

### Transient states

- [MLTaskState.running](coreml/mltaskstate/running.md)
- [MLTaskState.suspended](coreml/mltaskstate/suspended.md)
