Files
klz-cables.com/.pnpm-store/v10/files/46/17bde69dcb6bab4d4a0cbe65f2ea24a23ab60dca89306d7e0b54b0f8e4927048f0576652115ba3b69a30d748c1a63ea0d6d79d97541a088b30303952089be6
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

27 lines
864 B
Plaintext

import type { WorkerRequest } from '../types';
/**
* Event buffer that uses a web worker to compress events.
* Exported only for testing.
*/
export declare class WorkerHandler {
private _worker;
private _id;
private _ensureReadyPromise?;
constructor(worker: Worker);
/**
* Ensure the worker is ready (or not).
* This will either resolve when the worker is ready, or reject if an error occurred.
*/
ensureReady(): Promise<void>;
/**
* Destroy the worker.
*/
destroy(): void;
/**
* Post message to worker and wait for response before resolving promise.
*/
postMessage<T>(method: WorkerRequest['method'], arg?: WorkerRequest['arg']): Promise<T>;
/** Get the current ID and increment it for the next call. */
private _getAndIncrementId;
}
//# sourceMappingURL=WorkerHandler.d.ts.map