MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / async_start

Method async_start

crates/wasmtime/src/runtime/component/concurrent.rs:4157–4179  ·  view source on GitHub ↗
(
        &mut self,
        instance: Instance,
        callback: *mut VMFuncRef,
        post_return: *mut VMFuncRef,
        callee: NonNull<VMFuncRef>,
        param_count: u32,
        result_cou

Source from the content-addressed store, hash-verified

4155 }
4156
4157 unsafe fn async_start(
4158 &mut self,
4159 instance: Instance,
4160 callback: *mut VMFuncRef,
4161 post_return: *mut VMFuncRef,
4162 callee: NonNull<VMFuncRef>,
4163 param_count: u32,
4164 result_count: u32,
4165 flags: u32,
4166 ) -> Result<u32> {
4167 unsafe {
4168 instance.start_call(
4169 StoreContextMut(self),
4170 callback,
4171 post_return,
4172 callee,
4173 param_count,
4174 result_count,
4175 flags,
4176 None,
4177 )
4178 }
4179 }
4180
4181 fn future_write(
4182 &mut self,

Callers 1

async_startFunction · 0.80

Calls 2

StoreContextMutClass · 0.85
start_callMethod · 0.80

Tested by

no test coverage detected