fn kept_diagnostics(
cancel: &CancelToken,
answer: &Result<Outcome, Error>,
) -> Option<(&'static str, String)>Expand description
The store entry a finished answer earns, read with the cancel token at the write decision.
The early checks catch a cancel that landed before the answer was built,
and finish_after_join catches one that landed during the join’s
normalize pass. Neither can cover the write itself: both writers read the
token here first, and diagnostics::capture_take removes the directory
it claimed when the token is set by the time the write finishes. Together
that is what makes an abandoned take persist nothing.