Function ctx::with_deadline
[−]
[src]
pub fn with_deadline(
parent: Context,
deadline: Instant
) -> (Context, Box<Fn() + Send>)
Returns with_timeout(parent, deadline - Instant::now())
.