Skip to main content

append_convergence

Function append_convergence 

Source
pub fn append_convergence(
    path: &Path,
    expected_file_hash: &str,
    items: &[String],
) -> Result<Vec<String>, String>
Expand description

Appends - [ ] N. Convergence with one open sub-task N.k per item, N after the highest top-level number. The file must still hash to expected_file_hash; the old bytes stay an exact prefix.

ยงErrors

The file changed since convergence began, the append would change an existing task, or the file cannot be written.