Function with_context

Source
pub fn with_context<F, R>(f: F) -> R
where F: FnOnce(&mut Context<'_>) -> R,
Expand description

Map a futures 0.1 notify to a std::task::Context.