pub fn with_shared<R>(
config: &Config,
f: impl FnOnce(&mut RecallContext) -> R,
) -> Result<R, String>Expand description
Run f with the process-global shared recall context for config.
The context is opened on first use and transparently reopened whenever the index layout changes underneath it. Returns the closure’s result, or the open error as a string.