MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / push_host_result_by_id

Method push_host_result_by_id

compiler/src/modules/vm/init.rs:117–120  ·  view source on GitHub ↗

String form of `inject_host_result_by_id`. */

(&mut self, id: u64, message: &str)

Source from the content-addressed store, hash-verified

115
116 /* String form of `inject_host_result_by_id`. */
117 pub fn push_host_result_by_id(&mut self, id: u64, message: &str) -> Result<bool, VmErr> {
118 let val = self.heap.alloc(HeapObj::Str(message.into()))?;
119 Ok(self.inject_host_result_by_id(id, val))
120 }
121
122 /* Raise `e` inside the `WaitingHostCall(id)` coro at its saved try-frame, or mark it Errored if none; false if no coro is parked on `id`. A failed host call wakes only its coro, leaving siblings untouched. */
123 pub fn inject_host_error_by_id(&mut self, id: u64, e: VmErr) -> bool {

Callers 1

packages_casesFunction · 0.80

Calls 2

allocMethod · 0.45

Tested by 1

packages_casesFunction · 0.64