A transaction resource is the target a Participant is mutating. The Coordinator tracks the state of resources to ensure only a single transaction ever has exclusive access.

interface Resource {
    [reference]?: Resource;
    lockedBy?: Transaction;
    toString(): string;
    reference: unique symbol;
}

Properties

Methods

Properties

[reference]?: Resource

Inform Transaction this resource is a standin for another resource.

lockedBy?: Transaction

Locking transaction, maintained by Transaction.

Methods

  • Textual description of the resource used in error messages.

    Returns string