[]
This method is called when an item is inserted in the collection.
protected virtual Task<int> InsertAsyncOverride(int index, T item, CancellationToken cancellationToken)
| Type | Name | Description |
|---|---|---|
| int | index | The index where the item is inserted. |
| T | item | The item inserted. |
| CancellationToken | cancellationToken | The cancellation token. |
| Type | Description |
|---|---|
| Task<int> |
CanInsert(int, T) must return true to enable this method.