# CreateArchetypeChunkArrayAsync(AllocatorHandle, out JobHandle)

> Obsolete. Use EntityQuery.ToArchetypeChunkListAsync instead.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.EntitiesModule

## CreateArchetypeChunkArrayAsync(AllocatorHandle, JobHandle)

> **Warning:**
>
> **Deprecated.** This method is not actually asynchronous. Use ToArchetypeChunkListAsync() instead. (RemovedAfter Entities 1.0)

```csharp
public NativeArray<ArchetypeChunk> CreateArchetypeChunkArrayAsync(AllocatorManager.AllocatorHandle allocator, out JobHandle outJobHandle)
```

### Parameters

**** (\[AllocatorHandle]\(/engine/7000.0/script-reference/unity/collections/allocatormanager/allocatorhandle)): Allocator to use for the array.**** (\[JobHandle]\(/engine/7000.0/script-reference/unity/jobs/jobhandle)): An `out` parameter assigned the handle to the internal job that gathers the chunks matching this EntityQuery.

### Returns

| Type                                                                                              | Description                                                            |
| ------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- |
| [NativeArray\<ArchetypeChunk>](/engine/7000.0/script-reference/unity/collections/nativearray1.md) | NativeArray of all the chunks containing entities matching this query. |

### Remarks

**Obsolete.** Use [EntityQuery.ToArchetypeChunkListAsync](/engine/7000.0/script-reference/unity/entities/entityquery/toarchetypechunklistasync.md) instead.

Use `outJobHandle` as a dependency for jobs that use the returned chunk array.
