pub fn provide_async_context<C, T, F>(
ctx: C,
future: F,
) -> AsyncContext<C, T, F> ⓘwhere
C: 'static,
F: Future<Output = T>,
Expand description
Wraps a future with some async context. Within the future, the provided context can be retrieved using with_async_context or with_async_context_mut