Class: SectionWorker
Defined in: packages/minerender/src/world/SectionWorker.ts:5
Runs section geometry builds in the environment's shared worker.
Methods
build()
ts
build(input): Promise<SectionGeometryPage[]>;Defined in: packages/minerender/src/world/SectionWorker.ts:42
Builds geometry without transferring the input buffers away from the caller.
Parameters
| Parameter | Type |
|---|---|
input | SectionGeometryInput |
Returns
Promise<SectionGeometryPage[]>
terminate()
ts
terminate(): void;Defined in: packages/minerender/src/world/SectionWorker.ts:52
Rejects pending builds, terminates the worker, and makes shared() return undefined.
Returns
void
shared()
ts
static shared(): SectionWorker | undefined;Defined in: packages/minerender/src/world/SectionWorker.ts:32
The shared worker, or undefined when the environment has none or a previous worker failed.
Returns
SectionWorker | undefined