interface TokenMovementContinuationData {
    continueCounter: number;
    continued: boolean;
    continuePromise: null | Promise<boolean>;
    movementId: string;
    postWorkflowPromise: Promise<void>;
    resolveWaitPromise: () => undefined | {};
    states: {
        [movementId: string]: {
            callbacks: (continued: boolean) => void[];
            handles: Map<string | symbol, TokenMovementContinuationHandle>;
            pending: Set<string>;
        };
    };
    waitPromise: Promise<void>;
}

Properties

continueCounter: number

The number of continuations

continued: boolean

Was continued?

continuePromise: null | Promise<boolean>

The continuation promise

movementId: string

The movement ID

postWorkflowPromise: Promise<void>

The promise that resolves after the update workflow

resolveWaitPromise: () => undefined | {}

Resolve function of the wait promise

states: {
    [movementId: string]: {
        callbacks: (continued: boolean) => void[];
        handles: Map<string | symbol, TokenMovementContinuationHandle>;
        pending: Set<string>;
    };
}

The movement continuation states

waitPromise: Promise<void>

The promise to wait for before continuing movement