Skip to content

mapGeneratorWorker beta ​

Function of @v12-engine/engine

ts
export declare function mapGeneratorWorker(given: NavigationWorkerLike | (() => NavigationWorkerLike)): MapGenerating;

Maps made in a worker whose file serves them (serveMapGenerator): the page makes the worker as its bundler wants it, mapGeneratorWorker(() => new Worker(new URL('./generate.worker.ts', import.meta.url), { type: 'module' })). Given as a function, the worker is made at the first map asked for: a menu that is never opened fetches none of it