I do have an asynchron function. In this function I need to have the value of an variable, which is defined outside the function. How is it possible to access the variable i