Home > @uniformdev/canvas > BatchEntry

BatchEntry class

A single entry in a batch of queued enhancements.

Signature:

Constructors

<table><thead><tr><th>

Constructor

</th><th>

Modifiers

</th><th>

Description

</th></tr></thead> <tbody><tr><td>

(constructor)(_resolve, _reject, args)

</td><td>

</td><td>

Constructs a new instance of the BatchEntry class

</td></tr> </tbody></table>

Properties

<table><thead><tr><th>

Property

</th><th>

Modifiers

</th><th>

Type

</th><th>

Description

</th></tr></thead> <tbody><tr><td>

args

</td><td>

</td><td>

TArgs

</td><td>

</td></tr> <tr><td>

isCompleted

</td><td>

readonly

</td><td>

boolean

</td><td>

Whether the batch entry has been completed (resolved or rejected).

</td></tr> </tbody></table>

Methods

<table><thead><tr><th>

Method

</th><th>

Modifiers

</th><th>

Description

</th></tr></thead> <tbody><tr><td>

reject(reason)

</td><td>

</td><td>

Mark the batch entry as failed.

</td></tr> <tr><td>

resolve(result)

</td><td>

</td><td>

Mark the batch entry as successfully completed.

</td></tr> </tbody></table>