In python I have a list of files that needs to be uploaded.
An example code might look like this:
for path, key in upload_list:
upload_function.upload_file(path, key)
How can I multithread such tasks?
I already came accross multiple solution like process loops, see: How to Multithread functions in Python? but to me these seeme to be kinda overkill just to process a list of files for upload. Is there maybe a smarter way?