# GetEntryAsync(CancellationToken)

> Resolves the entry asynchronously, loading the table if it is not already available.

## Definition

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

```csharp
public Awaitable<TEntry> GetEntryAsync(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\<T>](/engine/6000.7/script-reference/unityengine/awaitable.md) | An awaitable that produces the resolved entry, or null when it cannot be resolved. |

### Remarks

The entry is resolved as `TEntry` through the [ResourceDatabase](/engine/6000.7/script-reference/unity/localization/resourcedatabase.md) provider chain, following the locale fallback chain when [LocalizedReference.EnableFallback](/engine/6000.7/script-reference/unity/localization/localizedreference/enablefallback.md) is set. The result is null when the reference is empty, no resource database is configured, or the entry cannot be found. The resolved entry is cached and reused until the reference changes or the resolving locale changes, so repeated calls do not resolve again. The [LocalizedString](/engine/6000.7/script-reference/unity/localization/localizedstring.md) and [LocalizedAsset\<TObject>](/engine/6000.7/script-reference/unity/localization/localizedasset1.md) types build on this cache to format or load the same entry without resolving it every time.

Load an entry asynchronously.

### Examples

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

namespace Unity.Localization.Samples
{
    public class LocalizedEntryGetEntryAsyncExample
    {
        public async Awaitable Load()
        {
            var reference = new LocalizedString();
            reference.SetReference("My Strings", "HELLO");
            var entry = await reference.GetEntryAsync();
            if (entry != null)
                Debug.Log(entry.Value);
        }
    }
}
```
