pub trait GenerateResultFn<K, V, E>: FnOnce(&K) -> Result<V, E> + Send + Any { }
A function that can be used to generate a result based on a key in a background thread.