Class: SectionWorker
Defined in: packages/minerender/src/world/SectionWorker.ts:8
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:49
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:59
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:39
The shared worker, or undefined when the environment has none or a previous worker failed.
Returns
SectionWorker | undefined