Class AsyncTransaction<T>Abstract

Transaction that only supports asynchronous operations

Type Parameters

Hierarchy (View Summary)

Constructors

Properties

done: boolean = false

Whether the transaction was committed or aborted

store: T

Methods

  • Retrieves data.

    Parameters

    • id: number

      The key to look under for data.

    Returns Promise<Uint8Array<ArrayBufferLike>>

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

    Parameters

    • id: number

      The key to add the data under.

    • data: Uint8Array<ArrayBufferLike>

      The data to add to the store.

    • OptionalisMetadata: boolean

    Returns Promise<void>