# GetTableAsync(CancellationToken)

> Resolves the table asynchronously for the reference's locale.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Localization](/engine/6000.7/script-reference/unity/localization.md)
* **Assembly:** UnityEngine.LocalizationRuntimeModule

```csharp
public Awaitable<ResourceTable> GetTableAsync(CancellationToken cancellationToken = default)
```

### Parameters

**** (\[CancellationToken]\(https\://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken)): A token that cancels the asynchronous load. The default token never cancels.

### Returns

| Type                                                                                  | Description                                                                        |
| ------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
| [Awaitable\<ResourceTable>](/engine/6000.7/script-reference/unityengine/awaitable.md) | An awaitable that produces the resolved table, or null when it cannot be resolved. |

### Remarks

Loads the table through the [ResourceDatabase](/engine/6000.7/script-reference/unity/localization/resourcedatabase.md) provider chain if needed. The result is null when the reference is empty, no resource database is configured, or the table cannot be found. When [LocalizationSettings.PreferredLoading](/engine/6000.7/script-reference/unity/localization/localizationsettings/preferredloading.md) is [LoadingPreference.Synchronous](/engine/6000.7/script-reference/unity/localization/loadingpreference/synchronous.md) and the table is available synchronously, the table resolves without an asynchronous load.

Load a table asynchronously.

### Examples

```csharp
using Unity.Localization;
using UnityEngine;

namespace Unity.Localization.Samples
{
    public class LocalizedTableGetTableAsyncExample
    {
        public async Awaitable Load()
        {
            var localizedTable = new LocalizedTable();
            localizedTable.TableReference = "My Strings";
            ResourceTable table = await localizedTable.GetTableAsync();
            if (table != null)
                Debug.Log(table.name);
        }
    }
}
```
