WebAssembly.compileStreaming

The WebAssembly.compileStreaming() function compiles a WebAssembly.Module directly from a streamed underlying source. This function is useful if it is necessary to a compile a module before it can be instantiated (otherwise, the WebAssembly.instantiateStreaming() function should be used).

MDN

function compileStreaming(source: Response | Promise<Response>): Promise<Module>;
§
compileStreaming(source: Response | Promise<Response>): Promise<Module>
[src]

§Parameters

§
source: Response | Promise<Response>
[src]

§Return Type

§
Promise<Module>
[src]