MCPcopy Create free account
hub / github.com/argumentcomputer/ix / coordinated_check_block_for_const

Method coordinated_check_block_for_const

crates/kernel/src/check.rs:62–70  ·  view source on GitHub ↗

Return the whole-block check key for a constant when its block has a supported homogeneous shape. This is used by batch schedulers to avoid assigning multiple workers to members of the same block.

(
    &mut self,
    id: &KId<M>,
  )

Source from the content-addressed store, hash-verified

60 /// supported homogeneous shape. This is used by batch schedulers to avoid
61 /// assigning multiple workers to members of the same block.
62 pub fn coordinated_check_block_for_const(
63 &mut self,
64 id: &KId<M>,
65 ) -> Result<Option<KId<M>>, TcError<M>> {
66 let Some(c) = self.try_get_const(id)? else {
67 return Ok(None);
68 };
69 self.coordinated_block_for(&c)
70 }
71
72 /// Type-check a single constant. Clears per-constant caches first.
73 pub fn check_const(&mut self, id: &KId<M>) -> Result<(), TcError<M>>

Callers

nothing calls this directly

Calls 2

coordinated_block_forMethod · 0.80
try_get_constMethod · 0.45

Tested by

no test coverage detected