Function tikv::coprocessor::interceptors::deadline::check_deadline [−][src]
pub fn check_deadline<F: Future>(
fut: F,
deadline: Deadline
) -> impl Future<Output = Result<F::Output, DeadlineError>>
Checks the deadline before every poll of the future. If the deadline is exceeded,
DeadlineError
is returned.