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

Method future_write

crates/wasmtime/src/runtime/component/concurrent.rs:4181–4202  ·  view source on GitHub ↗
(
        &mut self,
        instance: Instance,
        caller: RuntimeComponentInstanceIndex,
        ty: TypeFutureTableIndex,
        options: OptionsIndex,
        future: u32,
        address: u

Source from the content-addressed store, hash-verified

4179 }
4180
4181 fn future_write(
4182 &mut self,
4183 instance: Instance,
4184 caller: RuntimeComponentInstanceIndex,
4185 ty: TypeFutureTableIndex,
4186 options: OptionsIndex,
4187 future: u32,
4188 address: u32,
4189 ) -> Result<u32> {
4190 instance
4191 .guest_write(
4192 StoreContextMut(self),
4193 caller,
4194 TransmitIndex::Future(ty),
4195 options,
4196 None,
4197 future,
4198 address,
4199 1,
4200 )
4201 .map(|result| result.encode())
4202 }
4203
4204 fn future_read(
4205 &mut self,

Callers 1

future_writeFunction · 0.80

Calls 4

StoreContextMutClass · 0.85
guest_writeMethod · 0.80
mapMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected