Class AsyncTransaction<T>Abstract

Transaction that only supports asynchronous operations

Type Parameters

Hierarchy (view full)

Constructors

Properties

done: boolean = false

Whether the transaction was committed or aborted

store: T

Methods

  • Adds the data to the store under an id. Overwrites any existing data.

    Parameters

    • id: bigint

      The key to add the data under.

    • data: Uint8Array

      The data to add to the store.

    Returns Promise<void>