# ComputeTaskKind enum

Namespace: [Grasshopper2.Doc](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.doc.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public enum ComputeTaskKind
```

Enumerates the possible kind of tasks that the IDocumentObject.Compute() method can emit.

## Values

| Name | Value | Description |
| --- | --- | --- |
| Cold | 0 | Return a task which hasn't been scheduled yet. This allows the caller to execute the task synchronously. Do not use this option unless you know what you are doing. |
| Hot | 1 | Return a task which has been scheduled, but which is not necessarily running yet. This is the option most in line with the 'good practice' recommendations within TPL. |
