Function tikv_util::future::paired_future_callback [−][src]
pub fn paired_future_callback<T>() -> (Box<dyn FnOnce(T) + Send>, Receiver<T>) where
T: Send + 'static,
Generates a paired future and callback so that when callback is being called, its result is automatically passed as a future result.