Skip to main content

ProgressCallback

Type Alias ProgressCallback 

Source
pub type ProgressCallback<'a> = dyn FnMut(ProcessEvent) + Send + 'a;
Expand description

Object-safe callback accepted by the typed streaming operations.

Send lets an async trait future containing the borrowed callback remain Send, preserving GitApi/JjApi/facade trait-object usability. A callback panic is caught and disables further callback delivery for that run; output draining and process completion continue, matching processkit’s hardened per-line handler contract.