MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / async_flush

Method async_flush

crates/commitlog/src/index/indexfile.rs:189–191  ·  view source on GitHub ↗

Asynchronously flushes any pending changes to the index file Due to Async nature, `Ok(())` does not guarantee that the changes are flushed. an `Err` value indicates it definitely did not succeed

(&self)

Source from the content-addressed store, hash-verified

187 /// Due to Async nature, `Ok(())` does not guarantee that the changes are flushed.
188 /// an `Err` value indicates it definitely did not succeed
189 pub fn async_flush(&self) -> io::Result<()> {
190 self.inner.flush_async()
191 }
192
193 /// Asynchronously flushes the index entry starting at `offset` to the index file.
194 ///

Callers 2

fsyncMethod · 0.80
reset_to_internalFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected