Skip to main content

dispatch_main_async

Function dispatch_main_async 

Source
pub async fn dispatch_main_async(
    store: &mut Store<StoreData>,
    instance: &Instance,
) -> Result<Option<String>>
Expand description

Calls the instantiated program’s main and captures its JSON-encoded result.

Every thread polling this future must meet RuntimeConfig::native_stack_size’s caller contract, as for instantiate_program_async.