how to make an async function complete before moving to the next task in typescript/javascript
I have a function (nodejs on aws Lambda) that reads all the files in a directory on s3, converting each, and merging their contents before returning to the front end. The main function is as follows: export async function handleFilesRequest(foundry:…