Files
klz-cables.com/.pnpm-store/v10/files/ad/f82ea2dbe23312f2f433c2cd2d9be6beb4502c57b40e5aa2ab421259d6c88ac8f433146c4a4929f31bf63060510404c7d6126948a13e9a395e924a8ea0e16c
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

28 lines
887 B
Plaintext

import { 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