@subdavis this is a follow-up to #283 to use one of the alternative approaches I mentioned. I tried it using both the generator, and the index variable in closure, and ended up using the simple closure-based one. The generator one felt like overkill for the case of normal iteration over an array.
In addition to that change, I removed the unnecessary promiseList -- if I understand correctly, it was redundant since awaiting the return value of uploadFile will already resolve to the result. Please correct me if there's something I'm missing there.
@subdavis this is a follow-up to #283 to use one of the alternative approaches I mentioned. I tried it using both the generator, and the index variable in closure, and ended up using the simple closure-based one. The generator one felt like overkill for the case of normal iteration over an array.
In addition to that change, I removed the unnecessary
promiseList
-- if I understand correctly, it was redundant sinceawait
ing the return value ofuploadFile
will already resolve to the result. Please correct me if there's something I'm missing there.