Function deltachat::accounts::try_many_times
source · async fn try_many_times<F, Fut, T>(f: F) -> Result<(), T>
Expand description
Spend up to 1 minute trying to do the operation.
Even if Delta Chat itself does not hold the file lock, there may be other processes such as antivirus, or the filesystem may be network-mounted.
Without this workaround removing account may fail on Windows with an error “The process cannot access the file because it is being used by another process. (os error 32)”.