---
title: state
framework: coreml
role: symbol
role_heading: Instance Property
path: coreml/mltask/state
---

# state

The current state of the machine learning task.

## Declaration

```swift
var state: MLTaskState { get }
```

## See Also

### Checking the state of a task

- [MLTaskState](coreml/mltaskstate.md)
- [error](coreml/mltask/error.md)
