Skip to main content

execute_with_progress

Function execute_with_progress 

Source
pub fn execute_with_progress(
    plans: &[RenamePlan],
    log_sink: &mut dyn LogSink,
    progress: &mut dyn ProgressSink,
) -> Result<ExecutionReport, FrenError>
Expand description

Apply a sorted plan vector, recording to log_sink and calling progress after each successful rename.

This is the core executor. execute and execute_with_log are convenience wrappers that supply a NullProgressSink.