pub async fn with_ref<T: 'static + ?Sized, F: for<'c> FnOnce(&'c T) -> R, R>( f: F) -> Option<R>
Get a value from the current context. Only works when paired with provide_ref
provide_ref