# YarnTask\<T>

Struct in [Yarn.Unity](https://docs.yarnspinner.dev/3.1/api/csharp/yarn.unity)

Inherits from `System.ValueType`

## Summary

```csharp
public partial struct YarnTask<T>
```

## Methods

| Name                                                                                                                                                    | Description |
| ------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
| [Forget()](https://docs.yarnspinner.dev/3.1/api/csharp/yarn.unity/yarn.unity.yarntask-2/yarn.unity.yarntask.forget-2)                                   |             |
| [FromResult(T)](https://docs.yarnspinner.dev/3.1/api/csharp/yarn.unity/yarn.unity.yarntask-2/yarn.unity.yarntask.fromresult-1)                          |             |
| [GetAwaiter()](https://docs.yarnspinner.dev/3.1/api/csharp/yarn.unity/yarn.unity.yarntask-2/yarn.unity.yarntask.getawaiter-2)                           |             |
| [IsCompleted()](https://docs.yarnspinner.dev/3.1/api/csharp/yarn.unity/yarn.unity.yarntask-2/yarn.unity.yarntask.iscompleted-2)                         |             |
| [IsCompletedSuccessfully()](https://docs.yarnspinner.dev/3.1/api/csharp/yarn.unity/yarn.unity.yarntask-2/yarn.unity.yarntask.iscompletedsuccessfully-2) |             |
