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

Method future_read

crates/wasmtime/src/runtime/component/concurrent.rs:4204–4225  ·  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

4202 }
4203
4204 fn future_read(
4205 &mut self,
4206 instance: Instance,
4207 caller: RuntimeComponentInstanceIndex,
4208 ty: TypeFutureTableIndex,
4209 options: OptionsIndex,
4210 future: u32,
4211 address: u32,
4212 ) -> Result<u32> {
4213 instance
4214 .guest_read(
4215 StoreContextMut(self),
4216 caller,
4217 TransmitIndex::Future(ty),
4218 options,
4219 None,
4220 future,
4221 address,
4222 1,
4223 )
4224 .map(|result| result.encode())
4225 }
4226
4227 fn stream_write(
4228 &mut self,

Callers 1

future_readFunction · 0.80

Calls 4

StoreContextMutClass · 0.85
guest_readMethod · 0.80
mapMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected