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