Skip to content

How to wait for all uploads to finish before returning #884

Answered by GrosSacASac
EvHaus asked this question in Q&A
Discussion options

You must be logged in to vote

proimisy the s3Client.upload function, store the promise in a variable, push the variable in an array, then
use await Promise.all(promises)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@EvHaus
Comment options

Answer selected by EvHaus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants