diff --git a/src/db_options.rs b/src/db_options.rs index a32fc16..5d776c1 100644 --- a/src/db_options.rs +++ b/src/db_options.rs @@ -1221,6 +1221,18 @@ impl FlushOptions { FlushOptions::default() } + /// Waits until the flush is done. + /// + /// Default: true + /// + /// # Example + /// + /// ``` + /// use rocksdb::FlushOptions; + /// + /// let mut options = FlushOptions::default(); + /// options.set_wait(false); + /// ``` pub fn set_wait(&mut self, wait: bool) { unsafe { ffi::rocksdb_flushoptions_set_wait(self.inner, wait as c_uchar);