Skip to main content

instantiate_program_async

Function instantiate_program_async 

Source
pub async fn instantiate_program_async(
    linker: &Linker<StoreData>,
    store: &mut Store<StoreData>,
    module: &Module,
) -> Result<Instance>
Expand description

Instantiates the program’s module. A script’s top-level statements are its Wasm start function, so they run here rather than under dispatch_main_async. Arm the execution deadline before this call, and treat its error as main’s: it is shaped the same way.