SDK JS
    Preparing search index...

    Interface BvcWorkerDecoderOptions

    Construction options for BvcWorkerDecoder.

    interface BvcWorkerDecoderOptions {
        poolSize?: number;
        spawn?: () => Worker;
        threads?: ThreadsPolicy;
        wasmInit?: WasmHostInit;
    }
    Index

    Properties

    poolSize?: number

    Worker pool size. Defaults to hardwareConcurrency − 1, clamped to 1–4.

    spawn?: () => Worker

    Factory that creates a decode Worker. Defaults to the sibling module-worker chunk (./bvc-decode-worker.js) emitted by your bundler; CDN bundles spawn an inline blob worker. Override to self-host the worker script (e.g. under a strict CSP that forbids blob: workers).

    threads?: ThreadsPolicy

    Threaded (+atomics) artifact policy — see ThreadsPolicy.

    wasmInit?: WasmHostInit

    wasm load + init overrides for the main-thread header parse, and (when set) the wasmBytes forwarded to each worker so it skips its own fetch. See WasmHostInit.