default impl for wait_for_completion + check for errors in completion there

This commit is contained in:
pedrocarlo
2025-08-13 14:43:21 -03:00
parent 002390b5a5
commit f72bcbc5da
8 changed files with 14 additions and 49 deletions

View File

@@ -109,13 +109,6 @@ impl IO for SimulatorIO {
Ok(file)
}
fn wait_for_completion(&self, c: turso_core::Completion) -> Result<()> {
while !c.is_completed() {
self.run_once()?;
}
Ok(())
}
fn run_once(&self) -> Result<()> {
if self.fault.get() {
self.nr_run_once_faults