Skip to main content

retry_while_busy

Function retry_while_busy 

Source
fn retry_while_busy<T>(op: impl FnMut() -> Result<T, Error>) -> Result<T, Error>
Expand description

Run op until it stops failing with SQLITE_BUSY, for at most BUSY_TIMEOUT. Any other error, or BUSY past the deadline, is returned.