Pixi’VN
indexFunctions

Function: cloneMaybeOffloaded()

> cloneMaybeOffloaded<T>(value): Promise<T>

Defined in: src/worker/offload.ts:47

Deep-clones value (matching createExportableElement's JSON-round-trip semantics), via the registered game worker if available, falling back to the main thread otherwise.

Type Parameters

T

T extends object

Parameters

value

T

Returns

Promise<T>

On this page