Skip to content

@celox-sim/celox / index / createWasmSimulatorBridgeAsync

Function: createWasmSimulatorBridgeAsync()

createWasmSimulatorBridgeAsync(raw): Promise<WasmBridgeResult>

Defined in: packages/celox/src/wasm-bridge.ts:172

Asynchronous version of createWasmSimulatorBridge that uses WebAssembly.compile() + WebAssembly.instantiate().

Preferred for large modules in browsers where synchronous compilation may be rejected.

Parameters

raw

RawWasmSimulatorHandle

Returns

Promise<WasmBridgeResult>