MCPcopy Create free account
hub / github.com/donkeyteethUX/iced_plot / publish_result

Function publish_result

src/picking.rs:301–307  ·  view source on GitHub ↗
(instance_id: u64, res: GpuPickResult)

Source from the content-addressed store, hash-verified

299}
300
301fn publish_result(instance_id: u64, res: GpuPickResult) {
302 let mut map = registry().lock().unwrap();
303 let entry = map.entry(instance_id).or_default();
304 if entry.latest_res.as_ref().is_none_or(|r| r.seq < res.seq) {
305 entry.latest_res = Some(res);
306 }
307}
308
309// ---- GPU picking pass ----
310

Callers 2

serviceMethod · 0.85
poll_pendingMethod · 0.85

Calls 1

registryFunction · 0.85

Tested by

no test coverage detected