itk-wasm
Version:
High-performance spatial analysis in a web browser, Node.js, and reproducible execution across programming languages and hardware architectures.
14 lines (13 loc) • 524 B
TypeScript
/**
* Set the default web worker for functions in a bundle defined with itk-wasm bindgen.
*
* Must be created with `createWebWorker`.
**/
export declare function setDefaultWebWorker(webWorker: Worker | null): void;
/**
* Get the default web worker for functions in a bundle defined with itk-wasm bindgen.
*
* A value of `null` indicates that the default web worker has not been set and the default web worker for the
* bindgen package will be used.
**/
export declare function getDefaultWebWorker(): Worker | null;