DuckDB-WASM
    Preparing search index...

    Class AsyncDuckDB

    An interface for the async DuckDB bindings

    Implements

    Index

    Constructors

    Accessors

    Methods

    • Register a 4-byte SharedArrayBuffer for low-latency query cancellation.

      Wire format: a single Int32Array[0]. The main thread signals cancel by Atomics.store(int32, 0, 1). While a pending query is active the worker polls this flag every 10 ms (between pollPendingQuery iterations) and calls cancelPendingQuery when it sees 1, then writes 0 back.

      Only the most-recently-started pending query is SAB-cancellable; the 4-byte wire format has no room for a connection id. For multi-connection cancellation use the existing message-based connection.cancelSent().

      Idempotent and re-callable; supplying a new SAB replaces the previous one. Must be called after the worker has been attached.

      Parameters

      • sab: SharedArrayBuffer

      Returns void