Skip to main content

store_compiled

Function store_compiled 

Source
pub fn store_compiled<K: StoreKey, V: StoreValue>(
    store: &mut Store<K, V>,
    key: K,
    value: V,
)
Expand description

Records a freshly compiled artifact, logging rather than failing.

A refused write is routine, not exceptional: another process sharing the environment may have written the key first, or the backing store may have declined it. The artifact was just compiled either way, so the whole cost is compiling it again next run.