Class AutoBatchQueue

Constructors

Properties

Methods

Constructors

Properties

items: {
    action: "create" | "update";
    itemPromise: Promise<void>;
    itemPromiseResolve: () => void;
    payload: RunCreate | RunUpdate;
    size: number;
}[] = []
sizeBytes: number = 0

Methods

  • Returns {
        action: "create" | "update";
        itemPromise: Promise<void>;
        itemPromiseResolve: () => void;
        payload: RunCreate | RunUpdate;
        size: number;
    }

  • Parameters

    • upToSizeBytes: number

    Returns [AutoBatchQueueItem[], () => void]

  • Parameters

    • item: AutoBatchQueueItem

    Returns Promise<void>