Reference·JavaScript · @sascom/commonjsJavaScript

Context

Class in @sascom/commonjs.

API catalogue · @sascom/commonjs · Class

TypeScript#
class Context

The shared runtime context of the common library: its worker pool and WebAssembly modules

Members#

Member Kind Description
constructor Method
setupModules Method Starts the workers and loads the WebAssembly modules (zstd, xxh64, roaring, ...); idempotent
get Method The shared context, created on first use

constructor#

TypeScript#
constructor()

setupModules#

TypeScript#
setupModules(): Promise<void>

Starts the workers and loads the WebAssembly modules (zstd, xxh64, roaring, ...); idempotent

get#

TypeScript#
static get(): Context

The shared context, created on first use