Skip to main content

write_intent

Function write_intent 

Source
pub fn write_intent(dir: &Path, intent: &Intent) -> Result<()>
Expand description

What: Writes an intent durably: the file is synced, renamed into place, and the directory is synced. Why: This is the only synchronous write of a batch, whatever its size.

In TS you’d write (pseudocode):

await writeIntent(dir, intent)