In fact I want getListOfArguments to read some list and keep it globally, then I want to loop over the doSomething function to get each element of the array as an input and move on to the next element only when it's done with the first (hence the use of async!), but this doesn't seem to work.