Class DLCBatchAsync<T>
- Namespace
- DLCToolkit
- Assembly
- DLCToolkit.dll
A batch async awaitable operation that contains multiple sub async operations. Can represent the progress and status of all operations combined and will wait until all operations have finished. Note that all sub operations will run in parallel in most cases, so a batch operation will only usually take as much time as the longest sub operation in most cases, plus some minor overhead for management.
public sealed class DLCBatchAsync<T> : DLCAsync<T[]>, IEnumerator
Type Parameters
T
The generic type returned by each sub operation
- Inheritance
-
DLCAsync<T[]>DLCBatchAsync<T>
- Implements
- Inherited Members
Properties
CompletedCount
Get the total number of async operations in this batch that have completed with or without error.
public int CompletedCount { get; }
Property Value
LoadingCount
Get the total number of async operations in this batch that have not yet completed.
public int LoadingCount { get; }
Property Value
Tasks
Get access to each individual async task that is contained in this batch. Useful to access progress and status of a specific operation rather that using the total combined Progress.
public IReadOnlyList<DLCAsync<T>> Tasks { get; }
Property Value
TotalCount
Get the total number of async operations in this batch.
public int TotalCount { get; }
Property Value
Methods
UpdateTasks()
Called when this async operation can update.
protected override void UpdateTasks()