Skip to main content

with_cached_approval

Function with_cached_approval 

Source
pub async fn with_cached_approval<K, F, Fut>(
    store: &ApprovalStore,
    key: K,
    fetch: F,
) -> ReviewDecision
where K: Serialize + Clone, F: FnOnce() -> Fut, Fut: Future<Output = ReviewDecision>,
Expand description

Helper function to cache approval decisions (from Codex)