# IECBSingleton

> Interface for use with EntityCommandBufferSystems to store the list of pending buffers, which can be accessed from a bursted ISystem. You should implement a singleton with this interface every time you inherit from EntityCommandBufferSystem.

## Definition

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

```csharp
public interface IECBSingleton
```

## Methods

| Method                                                                                                       | Description                                                                                  |
| ------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------- |
| [SetAllocator](/engine/7000.0/script-reference/unity/entities/iecbsingleton/setallocator.md)                 | Set the allocator that command buffers created with this singleton should be allocated with. |
| [SetPendingBufferList](/engine/7000.0/script-reference/unity/entities/iecbsingleton/setpendingbufferlist.md) | Sets the list of command buffers to play back when this system updates.                      |
