Home > @uniformdev/canvas > BatchEntry
BatchEntry class
A single entry in a batch of queued enhancements.
Signature:
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(_resolve, _reject, args) | Constructs a new instance of the <code>BatchEntry</code> class |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
args | TArgs | ||
isCompleted | <code>readonly</code> | boolean | Whether the batch entry has been completed (resolved or rejected). |
Methods
Method | Modifiers | Description |
---|---|---|
reject(reason) | Mark the batch entry as failed. | |
resolve(result) | Mark the batch entry as successfully completed. |