I have this code:
function donwloadFromBucket() {
const {Storage} = require('@google-cloud/storage');
const storage = new Storage();
const options = { destination: "c:/tmp/dw.js", };
await storage
.bucket("pipelines-models")
.file("index.js")
.download(options); }
}
donwloadFromBucket();
nextOperations();
I want the donwloadFromBucket function to complete and only then to proceed to the function nextOperations.
How do i achieve this ?