pub fn build_artifact_caches_batch<E, F>(
specs: &[ArtifactCacheSpec],
populate: F,
) -> Result<ArtifactCacheBatchOutcome, ArtifactCacheBatchError<E>>Expand description
Build or reuse multiple independent transactional artifact sets.
The callback runs only for misses and receives one live transaction at a time. Sequential acquisition avoids self-deadlock when entries share a coordination scope. A callback error aborts and synchronously cleans that transaction before returning. Completed entries remain valid when a later entry fails.
This operation is not atomic across specifications. A caller requiring one
all-or-nothing multi-output publication should declare those outputs on one
ArtifactCacheSpec instead.